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 9831 - Handling of EOF in foreignContent mode causes all tags to be popped of stack of open elements
Summary: Handling of EOF in foreignContent mode causes all tags to be popped of stack ...
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:
Whiteboard:
Keywords:
: 10115 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-02 13:39 UTC by James Graham
Modified: 2010-10-04 13:58 UTC (History)
6 users (show)

See Also:


Attachments

Description James Graham 2010-06-02 13:39:22 UTC
In foreign content mode an EOF is handled as follows:

"Pop elements from the stack of open elements until either a math element or an svg element has been popped from the stack, and reprocess the token."

Since the insertion mode is not changed, this just leads to the same step being called until the stack of open elements is empty. The step should probably the switch the insertion mode back to the secondary insertion mode.
Comment 1 Eric Seidel 2010-07-09 06:40:48 UTC
*** Bug 10115 has been marked as a duplicate of this bug. ***
Comment 2 Ian 'Hixie' Hickson 2010-07-14 18:18:03 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.

This also affected cases like

   <svg>....

   <b>Hello world!</b>

...where the <svg> block isn't closed.
Comment 3 contributor 2010-07-14 18:18:50 UTC
Checked in as WHATWG revision r5159.
Check-in comment: Forgot to switch out of the foreign content mode when bailing out of it. Oops.
http://html5.org/tools/web-apps-tracker?from=5158&to=5159