Re: HTML parsing, <script>, and document.write() test/issue details?

On Wed, 14 Mar 2007, Dan Connolly wrote:
> 
> I'd like to know more about the details. I'd particularly appreciate it 
> if somebody would put together a few test cases that show how parsing 
> rules are integrated with <script> and document.write().

If anyone wants to construct said tests, the relevant parts of the WHATWG 
specification are:

   http://www.whatwg.org/specs/web-apps/current-work/#how-to0
   (search for 'A start tag with the tag name "script"')
   ...for how to handle <script> when it is inserted

   http://www.whatwg.org/specs/web-apps/current-work/#document.write0
   ...for how to handle document.write()

   http://www.whatwg.org/specs/web-apps/current-work/#script2
   ...for the rules for how to handle <script>

The WHATWG spec cross-references terms, so you can easily follow where the 
parts are integrated.

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

Received on Thursday, 15 March 2007 04:02:42 UTC