Open Bug 659706 Opened 13 years ago Updated 2 years ago

Use better names for DOM mutating methods on nsINode

Categories

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

x86
macOS
defect

Tracking

()

People

(Reporter: sicking, Unassigned)

Details

Currently it's kind of hard to tell the difference between the "internal" methods like RemoveChildAt/InsertChildAt and "DOM" methods like InsertBefore/ReplaceChild/AppendChild.

The difference is quite important in that for example the former doesn't fire DOMNodeRemoved mutation events or do any safety checks to prevent illegal DOM graphs.

We should come up with names that makes it more clear what the difference is. Suggestions welcome.
InternalRemoveChild/InternalInsertChildAt ?
Works for me.

Smaug, sounds good to you (given that this was your request originally)?
Internal prefix or postfix is something I was thinking too.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.