Whenever I embed a YouTube video in a page, the W3 Validator freaks out and gives me like 50 errors, all for things that occur within YouTube's embedding script that they give you. If I try to correct things then the video no longer works. Is there a way to tell the validator to ignore a certain part of the code?
For example:
# Line 63, Column 120: general entity "color1" not defined and no default entity
…ttp://www.youtube.com/v/qwA6_CrL7F8&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&
✉
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
# Warning Line 63, Column 126: reference not terminated by REFC delimiter
…www.youtube.com/v/qwA6_CrL7F8&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&featur
✉
If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
# Warning Line 63, Column 126: reference to external entity in attribute value
…www.youtube.com/v/qwA6_CrL7F8&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&featur
✉
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
Oh, and I should add that the
Oh, and I should add that the DocType is XHTML 1.0 Transitional, if that makes any difference...
It tells you exactly how to
It tells you exactly how to fix the ampersand problem.
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
Then you have to replace the <embed> tag because it's invalid. Check here: http://joliclic.free.fr/html/object-tag/en/