SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast JazKillingJoke's Avatar
    Join Date
    Jul 2004
    Location
    Atlanta
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Links with "&" don't validate XHTML 1.0 strict

    Hi

    I am using the following doctype

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    When I validate my page this link for a map to mapquest does not validate, all the ampersands return an error. Not sure how to fix this.

    http://www.mapquest.com/maps?form=directions&2pn=Applebee%27s%20Neighborhood%20Grill&2a=3690%20Cascade%20Rd%20SW&2c=Atlanta&2s=GA&2z=30331&2y=US&2l=33.723633&2g=-84.509215&2id=3819698"

    Here is the message from the validator:

    Line 52, Column 59: character "&amp;" is the first character of a delimiter but occurred as data.
    http://www.mapquest.com/maps?form=di...20Grill✉
    This message may appear in several cases:

    You tried to include the "<" character in your page: you should escape it as "&lt;"
    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    Another possibility is that you forgot to close quotes in a previous tag.

    Thanks a lot

    Patrick

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope and they wont until you change them to

    Code:
    &amp;
    They will still work perfectly BTW (the links that is)

  3. #3
    SitePoint Enthusiast JazKillingJoke's Avatar
    Join Date
    Jul 2004
    Location
    Atlanta
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I will try it.

    Patrick


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •