Open Bug 674437 Opened 13 years ago Updated 1 year ago

Retrieving attributes via XPath results in getAttributeNodeNS deprecation warnings

Categories

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

defect

Tracking

()

People

(Reporter: kmag, Unassigned)

References

(Blocks 2 open bugs)

Details

Retrieving an attribute node via document.evaluate, with an expression such as "//@href" results in a deprecation warning for getAttributeNodeNS:

Warning: Use of getAttributeNode() is deprecated. Use getAttribute() instead.
Source file: https://bugzilla.mozilla.org/enter_bug.cgi?product=Core

Unless I'm mistaken, this is the cause:

http://mxr.mozilla.org/mozilla2.0/source/content/xslt/src/xpath/txMozillaXPathTreeWalker.cpp#832

The following seem likely to cause similar problems:

http://mxr.mozilla.org/mozilla2.0/source/layout/inspector/src/inDOMView.cpp#718

http://mxr.mozilla.org/mozilla2.0/source/content/xul/content/src/nsXULElement.cpp#1383

http://mxr.mozilla.org/mozilla2.0/source/content/base/src/nsGenericElement.cpp#4795

http://mxr.mozilla.org/mozilla2.0/source/content/base/src/nsGenericElement.cpp#4987
Component: Document Navigation → DOM
QA Contact: docshell → general
Blocks: 691611
Blocks: 679684
Blocks: 661327
No longer blocks: 679684, 691611
Blocks: 679684
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.