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 8099 - Update 9.5 (Parsing HTML Fragments) for "script data" tokenizer state
Summary: Update 9.5 (Parsing HTML Fragments) for "script data" tokenizer state
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords: NE
Depends on:
Blocks:
 
Reported: 2009-10-28 00:06 UTC by Matt
Modified: 2010-10-04 14:47 UTC (History)
4 users (show)

See Also:


Attachments

Description Matt 2009-10-28 00:06:28 UTC
Step #4.1 of Section 9.5 (Parsing HTML Fragments) says:

"If it is a style, script, xmp, iframe, noembed, or noframes element: Switch the tokenizer to the RAWTEXT state."

However, the removal of the content model state, and the corresponding addition of the "script data" state to the tokenizer have made this outdated. I think you need to split "style" out here and say that a "style" tag requires that you switch the tokenizer to the "Script Data" state, which also matches the new tree construction algorithm (9.2.5.7 The "in head" insertion mode for a start tag named "script).

-Matt
Comment 1 Matt 2009-10-30 19:32:22 UTC
Sorry, I meant "script" tags, not "style" tags!
Comment 2 Ian 'Hixie' Hickson 2010-01-04 11:03:01 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: Done, but it actually makes no practical difference.
Comment 3 contributor 2010-01-04 11:27:23 UTC
Checked in as WHATWG revision r4457.
Check-in comment: Update the fragment parsing algorithm to handle <script> more theoretically properly. And mention a quicker implementation strategy.
http://html5.org/tools/web-apps-tracker?from=4456&to=4457