[whatwg] XHTML and document.write()

Anne van Kesteren fora at annevankesteren.nl
Mon Aug 14 07:22:01 PDT 2006


Just a FYI. You have to deal with the edge case that the root element
might be <html:script>. Non conforming obviously, but what's supposed to
happen should still be defined. I guess you would ignore calls to
document.write() in such cases or perhaps copy the element and put it
inside a <html:html> element and try again... Ouch!

Not sure if nested <html:script> element would make things harder here...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>




More information about the whatwg mailing list