Bug 85865

Summary: [Shadow] ShadowRoot.getElementsByTagNameNS should return nodes in ShadowRoot
Product: WebKit Reporter: Dominic Cooney <dominicc>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, rniwa, tasak
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://w3c-test.org/webapps/ShadowDOM/tests/submissions/Google/tests.html
Bug Depends on:    
Bug Blocks: 85862    

Dominic Cooney
Reported 2012-05-07 23:24:42 PDT
This manifests as a test failure at <http://w3c-test.org/webapps/ShadowDOM/tests/submissions/Google/tests.html> "Upper-boundary encapsulation: no nodes other than shadow root descendants are accessible with shadow root DOM tree accessor methods" … "assert_equals: no nodes other than shadow root descendants are accessible with ShadowRoot.getElementsByTagNameNS expected 2 but got 0"
Attachments
Takashi Sakamoto
Comment 1 2012-05-22 02:15:16 PDT
(In reply to comment #0) > This manifests as a test failure at <http://w3c-test.org/webapps/ShadowDOM/tests/submissions/Google/tests.html> > > "Upper-boundary encapsulation: no nodes other than shadow root descendants are accessible with shadow root DOM tree accessor methods" … "assert_equals: no nodes other than shadow root descendants are accessible with ShadowRoot.getElementsByTagNameNS expected 2 but got 0" I think, the test uses 'null' for the first argument of getElementsByTagNameNS, i.e. s.getElementsByTagNameNS(null, 'div'). However, these div elements has namespace URI, i.e. "http://www.w3.org/1999/xhtml". So TreeNodeList::nodeMatches cannot match any div elements and s.getElementsByTagNameNS returns no nodes. I'm not sure, but, I guess, this is a bug of tests.js. Best regards, Takashi Sakamoto
Takashi Sakamoto
Comment 2 2012-05-22 02:16:17 PDT
(In reply to comment #1) > (In reply to comment #0) > > This manifests as a test failure at <http://w3c-test.org/webapps/ShadowDOM/tests/submissions/Google/tests.html> > > > > "Upper-boundary encapsulation: no nodes other than shadow root descendants are accessible with shadow root DOM tree accessor methods" … "assert_equals: no nodes other than shadow root descendants are accessible with ShadowRoot.getElementsByTagNameNS expected 2 but got 0" > > I think, the test uses 'null' for the first argument of getElementsByTagNameNS, i.e. s.getElementsByTagNameNS(null, 'div'). However, these div elements has namespace URI, i.e. "http://www.w3.org/1999/xhtml". Sorry. "these div elements have namespace URI" > So TreeNodeList::nodeMatches cannot match any div elements and s.getElementsByTagNameNS returns no nodes. > > I'm not sure, but, I guess, this is a bug of tests.js. > > Best regards, > Takashi Sakamoto
Ryosuke Niwa
Comment 4 2022-08-12 10:01:09 PDT
We have this working now.
Note You need to log in before you can comment on or make changes to this bug.