Skip to content

Commit e73145c

Browse files
committed
Introduce three new extended attribute grammars
These new grammars will be used by the HTML spec for attribute reflection extended attributes.
1 parent d5cc64c commit e73145c

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

index.bs

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6802,7 +6802,7 @@ grammar symbol matches nearly any sequence of tokens, however the
68026802
defined in this document only accept a more restricted syntax.
68036803
Any extended attribute encountered in an
68046804
[=IDL fragment=] is
6805-
matched against the following five grammar symbols to determine
6805+
matched against the following eight grammar symbols to determine
68066806
which form (or forms) it is in:
68076807

68086808
<table class="vert data">
@@ -6855,6 +6855,39 @@ which form (or forms) it is in:
68556855
<code>[PutForwards=name]</code>
68566856
</td>
68576857
</tr>
6858+
<tr>
6859+
<td>
6860+
<emu-nt><a href="#prod-ExtendedAttributeString">ExtendedAttributeString</a></emu-nt>
6861+
</td>
6862+
<td>
6863+
<dfn id="dfn-xattr-string" for="extended attribute" export>takes a string</dfn>
6864+
</td>
6865+
<td>
6866+
<code>[Reflect="popover"]</code>
6867+
</td>
6868+
</tr>
6869+
<tr>
6870+
<td>
6871+
<emu-nt><a href="#prod-ExtendedAttributeNumber">ExtendedAttributeNumber</a></emu-nt>
6872+
</td>
6873+
<td>
6874+
<dfn id="dfn-xattr-number" for="extended attribute" export>takes an integer or decimal</dfn>
6875+
</td>
6876+
<td>
6877+
<code>[ReflectDefault=2.0]</code>
6878+
</td>
6879+
</tr>
6880+
<tr>
6881+
<td>
6882+
<emu-nt><a href="#prod-ExtendedAttributeIntegerList">ExtendedAttributeIntegerList</a></emu-nt>
6883+
</td>
6884+
<td>
6885+
<dfn id="dfn-xattr-integer-list" for="extended attribute" export>takes an integer list</dfn>
6886+
</td>
6887+
<td>
6888+
<code>[ReflectRange=(2, 600)]</code>
6889+
</td>
6890+
</tr>
68586891
<tr>
68596892
<td>
68606893
<emu-nt><a href="#prod-ExtendedAttributeIdentList">ExtendedAttributeIdentList</a></emu-nt>
@@ -6988,6 +7021,17 @@ five forms are allowed.
69887021
ε
69897022
</pre>
69907023

7024+
<pre class="grammar" id="prod-IntegerList">
7025+
IntegerList :
7026+
integer Integers
7027+
</pre>
7028+
7029+
<pre class="grammar" id="prod-Integers">
7030+
Integers :
7031+
"," integer Integers
7032+
ε
7033+
</pre>
7034+
69917035
<pre class="grammar" id="prod-ExtendedAttributeNoArgs">
69927036
ExtendedAttributeNoArgs :
69937037
identifier
@@ -7003,6 +7047,17 @@ five forms are allowed.
70037047
identifier "=" identifier
70047048
</pre>
70057049

7050+
<pre class="grammar" id="prod-ExtendedAttributeString">
7051+
ExtendedAttributeString :
7052+
identifier "=" string
7053+
</pre>
7054+
7055+
<pre class="grammar" id="prod-ExtendedAttributeNumber">
7056+
ExtendedAttributeNumber :
7057+
identifier "=" integer
7058+
identifier "=" decimal
7059+
</pre>
7060+
70067061
<pre class="grammar" id="prod-ExtendedAttributeWildcard">
70077062
ExtendedAttributeWildcard :
70087063
identifier "=" "*"
@@ -7013,6 +7068,11 @@ five forms are allowed.
70137068
identifier "=" "(" IdentifierList ")"
70147069
</pre>
70157070

7071+
<pre class="grammar" id="prod-ExtendedAttributeIntegerList">
7072+
ExtendedAttributeIntegerList :
7073+
identifier "=" "(" IntegerList ")"
7074+
</pre>
7075+
70167076
<pre class="grammar" id="prod-ExtendedAttributeNamedArgList">
70177077
ExtendedAttributeNamedArgList :
70187078
identifier "=" identifier "(" ArgumentList ")"

0 commit comments

Comments
 (0)