Closed
Bug 685798
Opened 13 years ago
Closed 13 years ago
Node.parentElement not implemented
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: bugzilla33, Assigned: smaug)
References
()
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(3 files)
905 bytes,
text/html
|
Details | |
8.95 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
134.87 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Build ID: 20110902133214 Steps to reproduce: 1. open testcase 2. click TEST button Actual results: Node.parentElement not implemented Expected results: alerts: HTMLHtmlElement, null
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Comment 2•13 years ago
|
||
Note: document.documentElement.parentElement MUST alerts null unlike document.documentElement.parentNode
Reporter | ||
Comment 3•13 years ago
|
||
IE, Chrome, Safari, Opera and Konqueror support parentElement
Assignee | ||
Comment 4•13 years ago
|
||
(Opera at least doesn't seem to support parentElement in all the nodes. Chrome does. Don't know about others)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → Olli.Pettay
Updated•13 years ago
|
OS: Windows 7 → All
Hardware: x86 → All
Version: 7 Branch → Trunk
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•13 years ago
|
||
Opera has an open bug on moving parentElement elsewhere. We are waiting on feedback from Gecko (or an implementation) before moving ahead.
Assignee | ||
Updated•13 years ago
|
Attachment #559394 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #559443 -
Flags: review?(bzbarsky)
Comment 7•13 years ago
|
||
Comment on attachment 559443 [details] [diff] [review] patch Review of attachment 559443 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/test/test_bug685798.html @@ +35,5 @@ > +is(df.firstChild.firstChild.parentElement, df.firstChild, > + "Text node's parent should be element."); > + > +is(document.createTextNode("foo").parentElement, null, > + "Text node shouldn't have parent element."); The test isn't clear: is it because it is a text node or because it is out of any document and has no parent?
Assignee | ||
Comment 8•13 years ago
|
||
I should be clear in the context it is in. But I can change the text.
Comment 9•13 years ago
|
||
We already have a bug on file for this...
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Comment 10•13 years ago
|
||
Ms2ger, you planning to land that patch? ;)
Comment 11•13 years ago
|
||
Actually, reopening this bug, since this patch is better than the old one.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 13•13 years ago
|
||
Comment on attachment 559443 [details] [diff] [review] patch Should the new prop go at the end of the interface to reduce the chance of people running into vtable issues? Maybe it doesn't matter... You need to rev the iids of all interfaces inheriting from nsIDOMNode. Use http://people.mozilla.org/~sfink/uploads/update-uuids for that. r=me with the latter fixed and the former at least considered.
Attachment #559443 -
Flags: review?(bzbarsky) → review+
Keywords: dev-doc-needed
Assignee | ||
Comment 14•13 years ago
|
||
Assignee | ||
Comment 15•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/569a45bfb71c http://hg.mozilla.org/mozilla-central/rev/5eba835c23a7
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: addon-compat
Comment 16•13 years ago
|
||
Documentation written: https://developer.mozilla.org/en/DOM/Node.parentElement Updated: https://developer.mozilla.org/en/DOM/Node Also listed on Firefox 9 for developers.
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
•