This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14698 - 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
Summary: The instructions for '>' say to emit the tag and then switch the tokenizer st...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 23:23 UTC by contributor
Modified: 2011-11-11 19:45 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-11-04 23:23:12 UTC
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
Comment 1 Ian 'Hixie' Hickson 2011-11-11 00:57:34 UTC
See also bug 10117 where I once attempted to fix this already.
Comment 2 Ian 'Hixie' Hickson 2011-11-11 19:45:14 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 3 contributor 2011-11-11 19:45:19 UTC
Checked in as WHATWG revision r6825.
Check-in comment: Fix <script>document.write('...')</script> -- it turns out the tokeniser would have been in the wrong state when processing the '.'s. This is actually just fixing the cases I somehow missed in r5164.
http://html5.org/tools/web-apps-tracker?from=6824&to=6825