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)

defect

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.
Assignee: hsivonen → nobody
Priority: -- → P3
Component: DOM → DOM: Core & HTML

In what case is this observable?

Depends on: 1475000
Flags: needinfo?(hsivonen)

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.