Closed Bug 296671 Opened 20 years ago Closed 14 years ago

Problem with retrieving node names & values in builds after 6/1/05

Categories

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

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ed, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050603 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050603 Firefox/1.0+

DOM operations on elements with attributes are now returning incorrect values
for nodeValues

Reproducible: Always

Steps to Reproduce:
1) Install 2005-06-03-06 Deer Park nighlty build with DOM inspector option.
2) Launch firefox, default www.google.com/firefox page appears
3) Open DOM Inspector
4) Inspect nodes, the node attributes are incorrect
Actual Results:  
The node attributes are incorrect

Expected Results:  
The node attributes should have been correct

Originally discovered when the following JS function started returning incorrect
values:

function getNodeAttr(node, attr_name) {
	var attr_val = "";
	var attr_node = node.attributes.getNamedItem(attr_name);
	if (attr_node) attr_val = attr_node.nodeValue;
	return attr_val;
}

The fact that the problem is also showing up in the DOM inspector confirms that
it looks like a new DOM bug.
Was this fixed in bug 296490? 
20050604 builds should have that fix.
(In reply to comment #1)
> Was this fixed in bug 296490? 
> 20050604 builds should have that fix.

Afaik, yes. Please confirm that.
Ed, is this still an issue?
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
WFM. (You've had over five years to reply, but please reopen if this bug is still present in Firefox 4.)
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.