You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meta: set dfn types; switch to (Bikeshed) short syntax
This change sets dfn type attributes on a large number of dfn and other
elements throughout the spec — generated using a specialized definitions
parser for the HTML spec built to improve on the existing scraping done
in Shepherd.
This particular patch doesn’t set all the potential dfn types that could
be set; instead it only sets those that were easiest to determine (those
where the data-x attribute and dfn start tag occur on the same line).
The setting of dfn type attributes and “for” attributes is based on the
corresponding WebIDL defined in the spec.
Note that this change also switches the spec to using the Bikeshed short
syntax for the attribute names; specifically:
* rather than using data-dfn-type=element, etc., attribute names, it
uses attributes literally named "element", etc.
* rather than the attribute name data-dfn-for it uses an attribute
literally named "for"
* replaces all data-export="" and data-noexport="" attributes with
value-less attributes literally named "export" and "noexport"
Additionally, the change drops "export" from any dfn that has a dfn type
attribute, and switches data-dfn-type="dfn" disambiguators to "export"
instead. It also cleans up some of the markup in the dependencies
section, which shouldn't be parsed anyway.
data-x="">extends</code> option. These types of custom elements have a local name equal to the
66161
66166
value passed in their <code data-x="">extends</code> option, and their <span
66162
66167
data-x="concept-custom-element-definition-name">defined name</span> is used as the value of the
66163
-
<dfn element-attr for="html-global"><code data-x="attr-is">is</code></dfn> attribute, which
66164
-
therefore must be a <span>valid custom element name</span>.</p></li>
66168
+
<dfn><code data-x="attr-is">is</code></dfn> attribute, which therefore must be a <span>valid
66169
+
custom element name</span>.</p></li>
66165
66170
</ol>
66166
66171
66167
66172
<p>After a <span>custom element</span> is <span data-x="create an element">created</span>,
@@ -69134,7 +69139,8 @@ Demos:
69134
69139
<h4>Items</h4>
69135
69140
69136
69141
<p>Every <span data-x="HTML elements">HTML element</span> may have an <dfn element-attr
69137
-
for="html-global"><code data-x="attr-itemscope">itemscope</code></dfn> attribute specified. The
69142
+
<p>Every <span data-x="HTML elements">HTML element</span> may have an <dfn><code data-x="attr-itemscope">itemscope</code></dfn> attribute specified. The <code
69143
+
data-x="attr-itemscope">itemscope</code></dfn> attribute specified. The <code
69138
69144
<code data-x="attr-itemscope">itemscope</code> attribute is a <span>boolean attribute</span>.</p>
69139
69145
69140
69146
<p>An element with the <code data-x="attr-itemscope">itemscope</code> attribute specified creates a
@@ -69143,8 +69149,9 @@ Demos:
69143
69149
<hr>
69144
69150
69145
69151
<p>Elements with an <code data-x="attr-itemscope">itemscope</code> attribute may have an <dfn
69152
+
<p>Elements with an <code data-x="attr-itemscope">itemscope</code> attribute may have an <dfn><code data-x="attr-itemtype">itemtype</code></dfn> attribute specified, to give the <span>item
specified, to give the <span>item types</span> of the <span data-x="concept-item">item</span>.</p>
69154
+
types</span> of the <span data-x="concept-item">item</span>.</p>
69148
69155
69149
69156
<p>The <code data-x="attr-itemtype">itemtype</code> attribute, if specified, must have a value that
69150
69157
is an <span>unordered set of unique space-separated tokens</span>, none of which are
@@ -69195,9 +69202,8 @@ Demos:
69195
69202
69196
69203
<p>Elements with an <code data-x="attr-itemscope">itemscope</code> attribute and an <code
69197
69204
data-x="attr-itemtype">itemtype</code> attribute that references a vocabulary that is defined to
69198
-
<dfn>support global identifiers for items</dfn> may also have an <dfn element-attr
69199
-
for="html-global"><code data-x="attr-itemid">itemid</code></dfn> attribute specified, to give a
69200
-
global identifier for the <span data-x="concept-item">item</span>, so that it can be related to
69205
+
<dfn>support global identifiers for items</dfn> may also have an <dfn><code data-x="attr-itemid">itemid</code></dfn> attribute specified, to give a global identifier for
69206
+
the <span data-x="concept-item">item</span>, so that it can be related to other <span
69201
69207
other <span data-x="concept-item">items</span> on pages elsewhere on the web.</p>
69202
69208
69203
69209
<p>The <code data-x="attr-itemid">itemid</code> attribute, if specified, must have a value that is
@@ -69225,9 +69231,8 @@ Demos:
69225
69231
<hr>
69226
69232
69227
69233
<p>Elements with an <code data-x="attr-itemscope">itemscope</code> attribute may have an <dfn
specified, to give a list of additional elements to crawl to find the name-value pairs of the
69230
-
<span data-x="concept-item">item</span>.</p>
69234
+
<p>Elements with an <code data-x="attr-itemscope">itemscope</code> attribute may have an <dfn><code data-x="attr-itemref">itemref</code></dfn> attribute specified, to give a list of additional
69235
+
elements to crawl to find the name-value pairs of the <span data-x="concept-item">item</span>.</p>
69231
69236
69232
69237
<p>The <code data-x="attr-itemref">itemref</code> attribute, if specified, must have a value that
69233
69238
is an <span>unordered set of unique space-separated tokens</span> none of which are
0 commit comments