Closed
Bug 127205
Opened 23 years ago
Closed 21 years ago
setNamedItemNS() in NamedNodeMap doesn't set the item properly
Categories
(Core :: DOM: Core & HTML, defect, P4)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.6alpha
People
(Reporter: sunrise_ey, Assigned: peterv)
References
()
Details
Attachments
(1 file)
657 bytes,
patch
|
sicking
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
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
Comment 1•23 years ago
|
||
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.
Assignee | ||
Comment 4•21 years ago
|
||
Pfff.
Assignee: dom_bugs → peterv
Target Milestone: --- → mozilla1.6alpha
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #131796 -
Flags: superreview?(jst)
Attachment #131796 -
Flags: review?(bugmail)
Comment 6•21 years ago
|
||
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+
Assignee | ||
Comment 8•21 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•