Closed
Bug 755682
Opened 13 years ago
Closed 6 years ago
Don't return from document.open() early if the insertion point is undefined
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: hsivonen, Unassigned)
References
Details
The spec says "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." but our document.open() implementation doesn't check the "the insertion point associated with that parser's input stream is not undefined" part.
Reporter | ||
Updated•6 years ago
|
Assignee: hsivonen → nobody
Priority: -- → P3
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Comment 1•6 years ago
|
||
In what case is this observable?
Depends on: 1475000
Flags: needinfo?(hsivonen)
Reporter | ||
Comment 2•6 years ago
|
||
I don't recall. Just now, I tried:
Foo
<script>
document.open();
</script>
and it looked like document.open
correctly did not take effect.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(hsivonen)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•