HTML5: Need a notification on parser / sink before script reads or mutates the DOM (e.g. via FlushPendingNotifications)

RESOLVED WONTFIX

Status

()

Core
DOM
RESOLVED WONTFIX
9 years ago
8 years ago

People

(Reporter: hsivonen, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
In order to make deferred insertions work while parsing, the tree builder needs to flush the deferred insertion queue before a script can touch the document tree in any way (including reading from it).

The tree builder needs a notification that it can flush on. This notification could be triggered on *any* DOM API on the Document (probably too many possible places to keep track of) or on script getting executed in the context of the Document (causing some flushes that wouldn't strictly necessary).
(Reporter)

Comment 1

8 years ago
The parser flushes ops on </script> and when returning from document.write().
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.