Opened 13 years ago

Closed 13 years ago

#2020 closed defect (fixed)

Error in BUFakeDom.js > BUFakeNode.setAttribute()

Reported by: james@… Owned by: dylan
Priority: high Milestone: 0.9
Component: TestFramework Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

There is a one-line bug in testtools/JsFakeDom/BUFakeDom.js line 419, in the BUFakeNode.setAttribute() method. Setting the value of an existing attribute causes an error '"nodeValue" is not defined'.

The fix is simple. The line

this.attnodes_by_name_()[name][nodeValue] = attval;

should be

this.attnodes_by_name_()[name].nodeValue = attval;

Change History (2)

comment:1 Changed 13 years ago by dylan

Milestone: 0.9
Owner: changed from alex to dylan
Status: newassigned

comment:2 Changed 13 years ago by dylan

Resolution: fixed
Status: assignedclosed

(In [7148]) fixes #2020, Error in BUFakeDom.js > BUFakeNode.setAttribute(), thanks James

Note: See TracTickets for help on using tickets.