Closed Bug 1062304 Opened 10 years ago Closed 5 years ago

Inspecting a node's attributes in the webconsole leads to [Use of attributes ownerElement/nodeValue/textContent attribute is deprecated] errors

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 860312

People

(Reporter: pbro, Unassigned)

Details

(Whiteboard: [btpp-backlog])

STR: - Open the devtools webconsole on this page - type 'document.body.attributes', - click on the word 'NamedNodeMap' in the output so that the object is inspected in the variablesview on the side, - now expand the first attribute in the variables view. This generates 3 errors in the console: Use of attributes' ownerElement attribute is deprecated. script.js:3202 Use of attributes' nodeValue attribute is deprecated. Use value instead. script.js:3202 Use of attributes' textContent attribute is deprecated. Use value instead. script.js:3202 These error messages will be confusing to users of the devtools because they are from the debugger actors code, not theirs. We should either stop using these deprecated attributes or not output these errors in the web console.
These are not caused by the actor using deprecated attributes, but by the engine when the actor tries to call these getters in order to get the value to display in the variables view. Unfortunately there is no way currently to separate these warnings from legitimate content warnings, as the engine does not distinguish them in any way.
Hmm, a hacky way to deal with these might be to examine the location for a chrome-style URL and clear the window ID in that case, so that the message would appear in the browser console instead.
Priority: -- → P3
Whiteboard: [btpp-backlog]
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.