Closed
Bug 579886
Opened 15 years ago
Closed 4 years ago
Get rid of indexed DOM access in the HTML5 parser
Categories
(Core :: DOM: HTML Parser, defect, P5)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: hsivonen, Unassigned)
Details
Since using neighbor pointer-based access to nsINode/nsIContent is now preferred, the HTML5 parser should no longer use the old index-based access.
bz, it seems to me that the notification APIs in nsContentUtils still want to see indeces. Which indexed APIs should I avoid and which APIs should I use instead?
| Reporter | ||
Updated•15 years ago
|
Priority: -- → P2
| Reporter | ||
Updated•15 years ago
|
Priority: P2 → P3
Comment 1•15 years ago
|
||
To do this changeover incrementally, I think we need to first change all the notification API consumers to not use indices, then change the api to not need indices.
As an intermediate stage, most of that API right now takes nodes _and_ indices (though . If you're not calling ContentRemoved, then all of it does. So on your end you could pass both index and node for now...
Realistically, I suspect that we probably just need to fix all the mutation observer consumers before we can get rid of index use in the parser due to the notification api issue.
Comment 2•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: normal → S4
Priority: P3 → P5
| Reporter | ||
Comment 3•4 years ago
|
||
AFAICT, we've fixed this along the way.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•