Skip to content

Commit

Permalink
Remove incorrect customized built-in element checks
Browse files Browse the repository at this point in the history
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 WICG/webcomponents#608.
  • Loading branch information
domenic authored and annevk committed Nov 16, 2016
1 parent 80b1640 commit 766a5e7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4933,13 +4933,6 @@ invoked, must run these steps:
<li>Let <var>is</var> be the value of <code>is</code> member of <var>options</var>, or null if no
such member exists.

<li>Let <var>definition</var> be the result of
<a lt="look up a custom element definition">looking up a custom element definition</a>, given the
<a>context object</a>, the <a>HTML namespace</a>, <var>localName</var>, and <var>is</var>.

<li>If <var>is</var> is non-null and <var>definition</var> is null, then <a>throw</a> a
{{NotFoundError}}.

<li><p>Let <var>namespace</var> be the <a>HTML namespace</a>, if the <a>context object</a> is an
<a>HTML document</a> or <a>context object</a>'s <a for=Document>content type</a> is
"<code>application/xhtml+xml</code>", and null otherwise.
Expand All @@ -4965,13 +4958,6 @@ invoked, must run these steps:
<li>Let <var>is</var> be the value of <code>is</code> member of <var>options</var>, or null if no
such member exists.

<li>Let <var>definition</var> be the result of
<a lt="look up a custom element definition">looking up a custom element definition</a>, given the
<a>context object</a>, <var>namespace</var>, <var>localName</var>, and <var>is</var>.

<li>If <var>is</var> is non-null and <var>definition</var> is null, then <a>throw</a> a
{{NotFoundError}}.

<li><p>Let <var>element</var> be the result of <a>creating an element</a> given
<var>document</var>, <var>localName</var>, <var>namespace</var>, <var>prefix</var>, <var>is</var>,
and with the <var>synchronous custom elements</var> flag set. Rethrow any exceptions.
Expand Down

0 comments on commit 766a5e7

Please sign in to comment.