On 4/12/11 8:43 PM, Andrew C. Johnston wrote:
Just a minor followup, sorry to burden the list, but perhaps it will benefit someone. Upon closer inspection the comment code surrounding the javascript must remain, otherwise it throws up a lot of errors when validating. The rest of the comment code can / should be removed.
Ah yes. The vagaries of pretending your page is XHTML... To be valid XHTML you need to enclose embedded scripts in CDATA sections, suitably commented. This article explains it nicely, with example code for you to use: http://covertprestige.info/html/script-syntax/ To re-introduce CSS into the topic, note that you do need to enclose embedded CSS in HTML comments, as so many do. But only if you intend to support Mosaic or version 1 of Netscape... ;) -- Cordially, David ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
