[whatwg] XHTML and document.write()

On Mon, 14 Aug 2006, Anne van Kesteren wrote:
>
> 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...

document.write() in XHTML is defined to raise an exception. There were 
simply too many edge cases that make no sense whatsoever for me to work 
out how it could work.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 14 June 2007 12:52:28 UTC