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 17077 - Spec for document.open() doesn't match reality when the parser is script-created
Summary: Spec for document.open() doesn't match reality when the parser is script-created
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-16 11:20 UTC by Henri Sivonen
Modified: 2013-03-18 07:56 UTC (History)
5 users (show)

See Also:


Attachments

Description Henri Sivonen 2012-05-16 11:20:04 UTC
http://www.whatwg.org/specs/web-apps/current-work/#dom-document-open says, in part:

"If the document has an active parser that isn't a script-created parser, and the insertion point associated with that parser's input stream is not undefined (that is, it does point to somewhere in the input stream), then the method does nothing. Abort these steps and return the Document object on which the method was invoked."

AFAICT, the part " that isn't a script-created parser" is bogus per the behavior of Firefox (tested trunk), Chrome (tested dev), Opera (tested Next) and IE (tested 9).

See these demos:
http://hsivonen.iki.fi/test/moz/document-open-during-network-parse.html
http://hsivonen.iki.fi/test/moz/document-open-during-script-created-parse.html

(Aside: It seems that the spec sides with WebKit and Presto rather than Gecko and Trident on the " and return the Document object on which the method was invoked" point.)
Comment 1 Ian 'Hixie' Hickson 2012-06-21 06:36:11 UTC
I wonder why I wrote that then. Weird.
Comment 2 contributor 2012-07-18 07:09:18 UTC
This bug was cloned to create bug 17869 as part of operation convergence.
Comment 3 Silvia Pfeiffer 2013-03-18 07:56:48 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-v2.html

Status: Accepted

Change Description:
https://github.com/w3c/html/cd36e1deb09a229a753f71872f955d722cfa6c9f

Rationale: accepted WHATWG change