Closed Bug 127205 Opened 22 years ago Closed 21 years ago

setNamedItemNS() in NamedNodeMap doesn't set the item properly

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.6alpha

People

(Reporter: sunrise_ey, Assigned: peterv)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper:
BuildID:    2001101117

The item in NamedNodeMap is not changed after setting new value by 
setNamedItemNS().
setNamedItemNS() is implemented in 
(content/base/src/nsDOMAttributeMap.cpp)
   nsresult nsDOMAttributeMap::SetNamedItemNS (nsIDOMNode* aArg, nsIDOMNode** 
aReturn)

I think removing the line with :
        attribute->GetPrefix(name);
will fix the problem.


Reproducible: Always
CC'ing sicking for his input about the proposed fix.
->DOM Core, P4.
Marking NEW.
Status: UNCONFIRMED → NEW
Component: DOM Style → DOM Core
Ever confirmed: true
Priority: -- → P4
Good catch! Yep, that should fix it.

However i'd rather wait a bit and do this in my bigger changes to this class, 
which will fix the many Attr-Node bugs we have today. Reason being that most of 
this code will change anyway at that point. That work will be finished before 
1.0, i promice you.
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Pfff.
Assignee: dom_bugs → peterv
Target Milestone: --- → mozilla1.6alpha
Status: NEW → ASSIGNED
Attached patch v1Splinter Review
Attachment #131796 - Flags: superreview?(jst)
Attachment #131796 - Flags: review?(bugmail)
Comment on attachment 131796 [details] [diff] [review]
v1

Heh, good one :-)

sr=jst
Attachment #131796 - Flags: superreview?(jst) → superreview+
Comment on attachment 131796 [details] [diff] [review]
v1

ugh, whatever was i thinking
Attachment #131796 - Flags: review?(bugmail) → review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 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.

Attachment

General

Created:
Updated:
Size: