From 766a5e7b8856fb5b90579e56ca1dc8497d28f144 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 15 Nov 2016 14:59:09 -0500 Subject: [PATCH] Remove incorrect customized built-in element checks createElement/createElementNS disallowed upgrading of customized built-in elements, incorrectly. Instead we should allow { is } to be supplied and even if there is no corresponding definition now, it will be upgraded later. Fixes https://github.com/w3c/webcomponents/issues/608. --- dom.bs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dom.bs b/dom.bs index 96bc4bb6a..1c26d5596 100644 --- a/dom.bs +++ b/dom.bs @@ -4933,13 +4933,6 @@ invoked, must run these steps:
  • Let is be the value of is member of options, or null if no such member exists. -
  • Let definition be the result of - looking up a custom element definition, given the - context object, the HTML namespace, localName, and is. - -
  • If is is non-null and definition is null, then throw a - {{NotFoundError}}. -
  • Let namespace be the HTML namespace, if the context object is an HTML document or context object's content type is "application/xhtml+xml", and null otherwise. @@ -4965,13 +4958,6 @@ invoked, must run these steps:

  • Let is be the value of is member of options, or null if no such member exists. -
  • Let definition be the result of - looking up a custom element definition, given the - context object, namespace, localName, and is. - -
  • If is is non-null and definition is null, then throw a - {{NotFoundError}}. -
  • Let element be the result of creating an element given document, localName, namespace, prefix, is, and with the synchronous custom elements flag set. Rethrow any exceptions.