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 9580 - Steps for handling end tags in the "in foreign" mode walk past the root node in the stack
Summary: Steps for handling end tags in the "in foreign" mode walk past the root node ...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Linux
: P1 critical
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://html5.org/tools/web-apps-track...
Whiteboard:
Keywords:
: 10118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-22 14:26 UTC by Henri Sivonen
Modified: 2010-10-04 14:30 UTC (History)
5 users (show)

See Also:


Attachments

Description Henri Sivonen 2010-04-22 14:26:18 UTC
In the text added in rev 4803, the step
"Set node to the previous entry in the stack of open elements."
walks past the start of the stack when node is the root node.
Comment 1 Henri Sivonen 2010-05-19 07:14:36 UTC
Adjusting importance per discussion with Hixie.
Comment 2 Henri Sivonen 2010-05-31 11:01:18 UTC
http://hg.mozilla.org/mozilla-central/file/62c09fac599a/parser/html/javasrc/TreeBuilder.java#l3109 shows how I improvised around this bug.
Comment 3 Henri Sivonen 2010-06-30 08:57:26 UTC
http://hg.mozilla.org/projects/htmlparser/rev/b08b9993cd5d#l1.66 (three lines) is the fix for this bug.
Comment 4 Henri Sivonen 2010-07-09 06:05:19 UTC
*** Bug 10118 has been marked as a duplicate of this bug. ***
Comment 5 Ian 'Hixie' Hickson 2010-07-14 00:29:38 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.

I don't think I've fixed this the way you did, but I'm not sure because I couldn't follow your code easily from a quick glance.
Comment 6 contributor 2010-07-14 00:33:01 UTC
Checked in as WHATWG revision r5155.
Check-in comment: Foreign content end tag handling change.
http://html5.org/tools/web-apps-tracker?from=5154&to=5155