Closed
Bug 844134
Opened 11 years ago
Closed 11 years ago
attributes should be defined on Element and not Node
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: erik, Assigned: Ms2ger)
References
Details
(Keywords: addon-compat, dev-doc-complete, site-compat)
Attachments
(1 file)
21.47 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
It makes no sense to expose attributes and hasAttributes on non Elements and DOM core updated the spec accordingly.
Updated•11 years ago
|
See Also: → https://bugs.webkit.org/show_bug.cgi?id=110510
Updated•11 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Version: unspecified → Trunk
Assignee | ||
Updated•11 years ago
|
Summary: attributes and hasAttributes should be defined on Element and not Node → attributes should be defined on Element and not Node
Assignee | ||
Comment 2•11 years ago
|
||
I filed bug 849661 for hasAttributes.
Attachment #723255 -
Flags: review?(jonas)
Comment on attachment 723255 [details] [diff] [review] Patch v1 Review of attachment 723255 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the below fixed. ::: layout/inspector/src/inDOMView.cpp @@ +1178,5 @@ > { > NS_ENSURE_ARG(aNode); > // attribute nodes > if (mWhatToShow & nsIDOMNodeFilter::SHOW_ATTRIBUTE) { > + if (nsCOMPtr<nsIDOMElement> element = do_QueryInterface(aNode)) { Are you sure this will work? The assignment operator for do_QI works weirdly in that do_QI doesn't actually return the result of the QI, it always returns a non-null object. I'd move this outside out the if-statement and just do |if (element)| to be on the safe side. It's not causing any runtime or compile time cost.
Attachment #723255 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/27a901ae549c
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Assignee | ||
Updated•11 years ago
|
Keywords: addon-compat,
dev-doc-needed
Comment 5•11 years ago
|
||
I've added this bug to the compatibility doc. Please correct the info if wrong. https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_22 Also, please update the following doc: https://developer.mozilla.org/en-US/docs/DOM/Node.attributes
Updated•11 years ago
|
Keywords: site-compat
Comment 6•9 years ago
|
||
Doc updated: Node.attributes moved to Element.attributes https://developer.mozilla.org/en-US/docs/Web/API/Element.attributes https://developer.mozilla.org/en-US/docs/Web/API/Node https://developer.mozilla.org/en-US/docs/Web/API/Element https://developer.mozilla.org/en-US/Firefox/Releases/22
Keywords: dev-doc-needed → dev-doc-complete
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•