Closed Bug 275159 Opened 20 years ago Closed 20 years ago

Remove duplicate {get|set|remove}AttributeNode* implementation

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

At the moment GenericElement and XULElement have almost
exactly the same implementation for DOMElement methods
{get|set|remove}AttributeNode*. We could add a generic implementation
which would be used in both cases.

Patch coming.
Just so you know, the plan is to make nsXULElement inherit nsGenericElement, at
which point we could simply remove the implementation in nsXULElement.

I'm not entierly sure how long until we're able to do that, but I think that
most obstacles are removed so it shouldn't be too hard (it's at the top of my
list once I get some time to work on mozilla again).

So IMHO we could just wait until then since these functions are so small anyway.
ok. I was just going to ask the question about the plan to make
nsXULElement to inherit nsGeneritElement.
You were faster :)
But any estimates when that might happen?
I should be able to do it during march
This will be fixed in Bug 198533.
Depends on: 198533
This was fixed in Bug 198533
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.