Skip to content

Commit

Permalink
Mark more elements in browsing-context-less documents as "undefined"
Browse files Browse the repository at this point in the history
This means in particular that they will not match :defined. Fixes WICG/webcomponents#540.
  • Loading branch information
domenic authored and annevk committed Aug 15, 2016
1 parent fbc0c31 commit 6b1b1da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
5 changes: 2 additions & 3 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5824,9 +5824,8 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
<a>custom element definition</a> set to null, <a><code>is</code> value</a> set to <var>is</var>,
and <a>node document</a> set to <var>document</var>.

<li><p>If <var>document</var> has a <a lt=concept-document-bc>browsing context</a>, and
<var>namespace</var> is the <a>HTML namespace</a>, and either <var>localName</var> is a
<a>valid custom element name</a> or <var>is</var> is is non-null, set <var>result</var>'s
<li><p>If <var>namespace</var> is the <a>HTML namespace</a>, and either <var>localName</var> is a
<a>valid custom element name</a> or <var>is</var> is non-null, then set <var>result</var>'s
<a>custom element state</a> to "<code>undefined</code>".
</ol>
</li>
Expand Down
21 changes: 14 additions & 7 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
<hgroup>
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-08-04">4 August 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-08-15">15 August 2016</time></span></h2>
</hgroup>
<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -2966,7 +2966,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<td><code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/comms.html#closeevent">CloseEvent</a></code>
<tr>
<td>"<code>compositionevent</code>"
<td><code class="idl"><a data-link-type="idl">CompositionEvent</a></code>
<td><code class="idl"><a data-link-type="idl" href="https://www.w3.org/TR/uievents/#compositionevent">CompositionEvent</a></code>
<td><a data-link-type="biblio" href="#biblio-uievents">[UIEVENTS]</a>
<tr>
<td>"<code>customevent</code>"
Expand Down Expand Up @@ -2994,7 +2994,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<td>"<code>events</code>"
<tr>
<td>"<code>focusevent</code>"
<td><code class="idl"><a data-link-type="idl">FocusEvent</a></code>
<td><code class="idl"><a data-link-type="idl" href="https://www.w3.org/TR/uievents/#focusevent">FocusEvent</a></code>
<td><a data-link-type="biblio" href="#biblio-uievents">[UIEVENTS]</a>
<tr>
<td>"<code>hashchangeevent</code>"
Expand Down Expand Up @@ -3049,7 +3049,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<td>"<code>svgzoomevents</code>"
<tr>
<td>"<code>textevent</code>"
<td><code class="idl"><a data-link-type="idl">CompositionEvent</a></code>
<td><code class="idl"><a data-link-type="idl" href="https://www.w3.org/TR/uievents/#compositionevent">CompositionEvent</a></code>
<td><a data-link-type="biblio" href="#biblio-uievents">[UIEVENTS]</a>
<tr>
<td>"<code>touchevent</code>"
Expand All @@ -3075,7 +3075,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<td><a data-link-type="biblio" href="#biblio-webgl">[WEBGL]</a>
<tr>
<td>"<code>wheelevent</code>"
<td><code class="idl"><a data-link-type="idl">WheelEvent</a></code>
<td><code class="idl"><a data-link-type="idl" href="https://www.w3.org/TR/uievents/#wheelevent">WheelEvent</a></code>
<td><a data-link-type="biblio" href="#biblio-uievents">[UIEVENTS]</a>
</table>
<li>
Expand Down Expand Up @@ -3478,7 +3478,7 @@ <h3 class="heading settled" data-level="4.9" id="interface-element"><span class=
to <var>localName</var>, <a data-link-type="dfn" href="#concept-element-custom-element-state">custom element state</a> set to "<code>uncustomized</code>", <a data-link-type="dfn" href="#concept-element-custom-element-definition">custom element definition</a> set to null, <a data-link-type="dfn" href="#concept-element-is-value"><code>is</code> value</a> set to <var>is</var>,
and <a data-link-type="dfn" href="#concept-node-document">node document</a> set to <var>document</var>. </p>
<li>
<p>If <var>document</var> has a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-bc">browsing context</a>, and <var>namespace</var> is the <a data-link-type="dfn" href="#html-namespace">HTML namespace</a>, and either <var>localName</var> is a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/scripting.html#valid-custom-element-name">valid custom element name</a> or <var>is</var> is is non-null, set <var>result</var>’s <a data-link-type="dfn" href="#concept-element-custom-element-state">custom element state</a> to "<code>undefined</code>". </p>
<p>If <var>namespace</var> is the <a data-link-type="dfn" href="#html-namespace">HTML namespace</a>, and either <var>localName</var> is a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/scripting.html#valid-custom-element-name">valid custom element name</a> or <var>is</var> is non-null, then set <var>result</var>’s <a data-link-type="dfn" href="#concept-element-custom-element-state">custom element state</a> to "<code>undefined</code>". </p>
</ol>
<li>
<p>Return <var>result</var>. </p>
Expand Down Expand Up @@ -6387,6 +6387,13 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<ul>
<li><a href="https://www.w3.org/TR/SVG/script.html#InterfaceSVGZoomEvent">SVGZoomEvent</a>
</ul>
<li>
<a data-link-type="biblio">[UIEVENTS]</a> defines the following terms:
<ul>
<li><a href="https://www.w3.org/TR/uievents/#compositionevent">CompositionEvent</a>
<li><a href="https://www.w3.org/TR/uievents/#focusevent">FocusEvent</a>
<li><a href="https://www.w3.org/TR/uievents/#wheelevent">WheelEvent</a>
</ul>
<li>
<a data-link-type="biblio">[URL]</a> defines the following terms:
<ul>
Expand Down Expand Up @@ -6443,7 +6450,7 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
<dt id="biblio-touch-events">[TOUCH-EVENTS]
<dd>Doug Schepers; et al. <a href="http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html">Touch Events</a>. 10 October 2013. REC. URL: <a href="http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html">http://dvcs.w3.org/hg/webevents/raw-file/v1/touchevents.html</a>
<dt id="biblio-uievents">[UIEVENTS]
<dd>Gary Kacmarcik; Travis Leithead. <a href="https://w3c.github.io/uievents/">UI Events Specification</a>. 15 December 2015. WD. URL: <a href="https://w3c.github.io/uievents/">https://w3c.github.io/uievents/</a>
<dd>Gary Kacmarcik; Travis Leithead. <a href="https://github.com/w3c/uievents/">UI Events</a>. 4 August 2016. WD. URL: <a href="https://github.com/w3c/uievents/">https://github.com/w3c/uievents/</a>
<dt id="biblio-url">[URL]
<dd>Anne van Kesteren. <a href="https://url.spec.whatwg.org/">URL Standard</a>. Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
<dt id="biblio-webgl">[WEBGL]
Expand Down

0 comments on commit 6b1b1da

Please sign in to comment.