SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2009
    0 Post(s)
    0 Thread(s)

    HTML Validation Tool

    It seems that the W3 HTML Validation Tool doesn't like my youtube links:

    Line 73, Column 58: cannot generate system identifier for general entity "feature"
    <a href="">...

    I tried putting in backslashes:

    <a href="\=klkSdZ_g5jI\&feature\=related">...

    However, I keep on getting these same errors in numerous locations.

    Is the second <a href="..."> above correct?

    Should I put backslashes in likewise with all such links?

  2. #2
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    51 Post(s)
    2 Thread(s)
    Answer: no.

    The errors you are getting with the = sign are bogus-- the real culprit is the &. Change it into a character entity and you're good-- the = errors will vanish.

    & amp ; without spaces. Yes, you'll have to do this manually, unless you have a back-end script to regex through links and replace them for you. Browsers and other user agents already know to automatically retranslate those back to &'s again.

    Any other errors with characters from the validator mean, not to comment them out with slashes but to use character entities (because it cannot tell when you want to use a reserved character like > in your cdata/content, and when you mean to use it for its special meaning like <a tag>).


Posting Permissions

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