Open Bug 159899 Opened 22 years ago Updated 2 years ago

Loss of reference when changing element attribute using setAttribute() ?

Categories

(Core :: XUL, defect)

x86
All
defect

Tracking

()

Future

People

(Reporter: sergi20m, Unassigned)

Details

Using the setAttribute() method to set an existent attribute causes the loss of
element's reference or something, because when serializing the elements
attributes through the attributes[] array, the changed attribute appears twice,
one with the old value and again with the new changed attribute, and if there
were other attributes in the element, they do not appear when serializing the
attributes[] array after doing the setAttribute.

testcase: 
http://www.mans-hq.net/XUL/wrongTestSerialize.xul

testcase with a workaround: 
http://www.mans-hq.net/XUL/rightTestSerialize.xul
Summary: Lost of reference when changing element attribute using setAttribute() ? → Loss of reference when changing element attribute using setAttribute() ?
Severity: major → minor
Target Milestone: --- → Future
to XUL
Assignee: jaggernaut → hyatt
Status: UNCONFIRMED → NEW
Component: XP Toolkit/Widgets → XP Toolkit/Widgets: XUL
Ever confirmed: true
QA Contact: jrgm → shrir
There's a missing '>' in the second attachment:

xmlns:xul = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
<xul:script>
Fixed missing '>'.

Thanx ;)
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Assignee: hyatt → nobody
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.