Closed
Bug 1254956
Opened 9 years ago
Closed 9 years ago
Implement Node.rootNode
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: smaug, Assigned: yrliou)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [tw-dom])
Attachments
(1 file)
This is a recent addition to the DOM spec. Webkit and Blink are implementing it.
Internally we have nsINode::SubtreeRoot() which, if I recall correctly, should map exactly to Node.rootNode
Reporter | ||
Updated•9 years ago
|
Whiteboard: [tw-dom]
Updated•9 years ago
|
Updated•9 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → joliu
Reporter | ||
Comment 1•9 years ago
|
||
FYI, there are some web-platform-tests coming from Apple.
Trying to find a link to those
Reporter | ||
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2)
> https://github.com/w3c/web-platform-tests/pull/2665
I added |RootNode()| method which basically just call |SubtreeRoot()|.
And applied this patch under testing/web-platform/tests, no new fail cases when I ran ./mach web-platform-tests testing/web-platform/tests/dom/interfaces.html.
But when I ran ./mach web-platform-tests testing/web-platform/tests/dom/nodes/rootNode.html, it said "No testharness tests to run" and 0 tests were ran.
Not sure what I'm missing here...
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Jocelyn Liu [:jocelyn] [:joliu] from comment #3)
> (In reply to Olli Pettay [:smaug] from comment #2)
> > https://github.com/w3c/web-platform-tests/pull/2665
>
> I added |RootNode()| method which basically just call |SubtreeRoot()|.
> And applied this patch under testing/web-platform/tests, no new fail cases
> when I ran ./mach web-platform-tests
> testing/web-platform/tests/dom/interfaces.html.
>
> But when I ran ./mach web-platform-tests
> testing/web-platform/tests/dom/nodes/rootNode.html, it said "No testharness
> tests to run" and 0 tests were ran.
> Not sure what I'm missing here...
OK, it turns out to be a silly one, I forgot to update the manifest.
Now all tests are passed.
Reporter | ||
Comment 5•9 years ago
|
||
I think we could then land the patch (after a review) and just wait a tiny bit to get those automated tests for free.
wpt->mozilla-central merge should happen quite often.
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/40771/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/40771/
Attachment #8731677 -
Flags: review?(bugs)
Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8731677 [details]
MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug, r=Ms2ger
https://reviewboard.mozilla.org/r/40771/#review37277
Attachment #8731677 -
Flags: review?(bugs) → review+
Comment 10•9 years ago
|
||
backed out for problems like https://treeherder.mozilla.org/logviewer.html#?job_id=24216639&repo=mozilla-inbound
Flags: needinfo?(joliu)
Assignee | ||
Comment 11•9 years ago
|
||
Sorry for the inconvenience, I didn't notice that web-platform test is already synced to our repo and marked as expected FAIL, will fix that and re-land my patch.
Flags: needinfo?(joliu)
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8731677 [details]
MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug, r=Ms2ger
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/40771/diff/1-2/
Comment 13•9 years ago
|
||
Comment on attachment 8731677 [details]
MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug, r=Ms2ger
https://reviewboard.mozilla.org/r/40771/#review37849
Stealing... r=smaug on the code changes, r=me on the test expectation updates.
Attachment #8731677 -
Flags: review+
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8731677 [details]
MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug, r=Ms2ger
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/40771/diff/2-3/
Attachment #8731677 -
Attachment description: MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug → MozReview Request: Bug 1254956 - Implement Node.rootNode. r?smaug, r=Ms2ger
Comment 15•9 years ago
|
||
Keywords: checkin-needed
Comment 16•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Comment 17•9 years ago
|
||
Doc updates underway. Will finish this evening.
Comment 18•9 years ago
|
||
Updated:
https://developer.mozilla.org/en-US/docs/Web/API/Node/rootNode
https://developer.mozilla.org/en-US/docs/Web/API/Node#Properties
Updated Firefox 48 for developers.
Keywords: dev-doc-needed → dev-doc-complete
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•