Closed Bug 468712 Opened 16 years ago Closed 15 years ago

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

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: hsivonen, Unassigned)

Details

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).
The parser flushes ops on </script> and when returning from document.write().
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.