[Webkit-unassigned] [Bug 85865] [Shadow] ShadowRoot.getElementsByTagNameNS should return nodes in ShadowRoot

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 22 02:16:11 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85865


Takashi Sakamoto <tasak at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tasak at google.com




--- Comment #1 from Takashi Sakamoto <tasak at google.com>  2012-05-22 02:15:16 PST ---
(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

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list