boobird
Feb 16th 2009, 4:45 pm
I am wondering if you can help me with a problem for javascript xhtml strict validation.
There is a protocol when using strict XHTML that all javascript should be
removed from the XHTML, and while we have done this for the majority of
elements, almost every form the site has requires javascript inline.
As an example, javascript uses the "&" character a lot, where as XML requires this to be "&", which we can not use in javascript.
Any suggestions?
1) We can keep the site as Strict XHTML and validate everything BUT the
javascript components, but this will result in lots of validation errors if
tested.
2) We can validate only for XHTML transitional. This would allow for 100%
validation.
There is a protocol when using strict XHTML that all javascript should be
removed from the XHTML, and while we have done this for the majority of
elements, almost every form the site has requires javascript inline.
As an example, javascript uses the "&" character a lot, where as XML requires this to be "&", which we can not use in javascript.
Any suggestions?
1) We can keep the site as Strict XHTML and validate everything BUT the
javascript components, but this will result in lots of validation errors if
tested.
2) We can validate only for XHTML transitional. This would allow for 100%
validation.