[Bug 14698] New: The instructions for '>' say to emit the tag and then switch the tokenizer state. But emitting this tag may run an inline script. And if it does document.write(), then the tokenizer will be in the wrong state when invoked reentrantly. So switch to data s

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14698

           Summary: The instructions for '>' say to emit the tag and then
                    switch the tokenizer state. But emitting this tag may
                    run an inline script. And if it does document.write(),
                    then the tokenizer will be in the wrong state when
                    invoked reentrantly.  So switch to data s
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#scr
                    ipt-data-end-tag-name-state
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: other Hixie drafts (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org


Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#script-data-end-tag-name-state
Complete: http://www.whatwg.org/c#script-data-end-tag-name-state

Comment:
The instructions for '>' say to emit the tag and then switch the tokenizer
state. But emitting this tag may run an inline script. And if it does
document.write(), then the tokenizer will be in the wrong state when invoked
reentrantly.  So switch to data state first and then emit the token! --djf

Posted from: 67.170.2.78
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0a2)
Gecko/20111101 Firefox/9.0a2

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 4 November 2011 23:25:19 UTC