From 29829350ad23b64f8e8a9aec47984d076531d723 Mon Sep 17 00:00:00 2001 From: Kent Tamura Date: Mon, 13 May 2019 12:09:37 +0900 Subject: [PATCH] Add "disable shadow" flag check to Element.attachShadow() This fixes a part of https://github.com/w3c/webcomponents/issues/758 --- dom.bs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dom.bs b/dom.bs index 93a69f7f6..78ee63051 100644 --- a/dom.bs +++ b/dom.bs @@ -6767,6 +6767,23 @@ invoked, must run these steps: "section", or "span", then throw a "{{NotSupportedError!!exception}}" {{DOMException}}. +
  • +

    If context object's local name is a + valid custom element name, or context object's + is value is not null, then: + +

      +
    1. Let definition be the result of + looking up a custom element definition given + context object's node document, its namespace, its + local name, and its is value. + +

    2. If definition is not null and definition's + disable shadow is true, then throw a + "{{NotSupportedError!!exception}}" {{DOMException}}. +

    +
  • +
  • If context object is a shadow host, then throw an "{{NotSupportedError!!exception}}" {{DOMException}}. @@ -10034,6 +10051,7 @@ J. S. Choi, Jungkee Song, Justin Summerlin, 呂康豪 (Kang-Hao Lu), +田村健人 (Kent TAMURA), Kevin Sweeney, Kirill Topolyan, Koji Ishii,