This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22316 - [Shadow]: Shadow DOM: createShadowRoot() should not check if the context object is an element
Summary: [Shadow]: Shadow DOM: createShadowRoot() should not check if the context obj...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2013-06-10 07:28 UTC by Hayato Ito
Modified: 2013-06-13 02:28 UTC (History)
1 user (show)

See Also:


Attachments

Description Hayato Ito 2013-06-10 07:28:30 UTC
Filed in crbug.com:
  https://code.google.com/p/chromium/issues/detail?id=248001.
Comment 1 Dominic Cooney 2013-06-10 23:17:15 UTC
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."
Comment 2 Hayato Ito 2013-06-13 02:28:30 UTC
Fixed in https://dvcs.w3.org/hg/webcomponents/rev/434441b2d90e.