[Bug 22316] [Shadow]: Shadow DOM: createShadowRoot() should not check if the context object is an element

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22316

Dominic Cooney <dominicc@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominicc@chromium.org
            Summary|[Shadow]:  Shadow DOM:      |[Shadow]:  Shadow DOM:
                   |createShadowRoot() throws   |createShadowRoot() should
                   |TypeError not               |not check if the context
                   |InvalidNodeTypeError        |object is an element

--- Comment #1 from Dominic Cooney <dominicc@chromium.org> ---
This check is the purview of Web IDL. Shadow DOM does not need to redundantly
specify it. It also specifies a different error (Web IDL specifies TypeError),
which is confusing. Let's not do that.

Specifically this check should be removed:

"If the context object is not an element, throw an InvalidNodeTypeError."

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 10 June 2013 23:17:20 UTC