Skip to content

Commit ef2df44

Browse files
authored
Introduce new extended attribute grammars
These new grammars will be used by the HTML spec for attribute reflection extended attributes.
1 parent 48eba6d commit ef2df44

File tree

1 file changed

+76
-1
lines changed

1 file changed

+76
-1
lines changed

index.bs

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6851,7 +6851,7 @@ grammar symbol matches nearly any sequence of tokens, however the
68516851
defined in this document only accept a more restricted syntax.
68526852
Any extended attribute encountered in an
68536853
[=IDL fragment=] is
6854-
matched against the following five grammar symbols to determine
6854+
matched against the following grammar symbols to determine
68556855
which form (or forms) it is in:
68566856

68576857
<table class="vert data">
@@ -6904,6 +6904,50 @@ which form (or forms) it is in:
69046904
<code>[PutForwards=name]</code>
69056905
</td>
69066906
</tr>
6907+
<tr>
6908+
<td>
6909+
<emu-nt><a href="#prod-ExtendedAttributeString">ExtendedAttributeString</a></emu-nt>
6910+
</td>
6911+
<td>
6912+
<dfn id="dfn-xattr-string" for="extended attribute" export>takes a string</dfn>
6913+
</td>
6914+
<td>
6915+
<code>[Reflect="popover"]</code>
6916+
</td>
6917+
</tr>
6918+
<tr>
6919+
<td>
6920+
<emu-nt><a href="#prod-ExtendedAttributeInteger">ExtendedAttributeInteger</a></emu-nt>
6921+
</td>
6922+
<td>
6923+
<dfn id="dfn-xattr-integer" for="extended attribute" export>takes an integer</dfn>
6924+
</td>
6925+
<td>
6926+
<code>[ReflectDefault=2]</code>
6927+
</td>
6928+
</tr>
6929+
<tr>
6930+
<td>
6931+
<emu-nt><a href="#prod-ExtendedAttributeDecimal">ExtendedAttributeDecimal</a></emu-nt>
6932+
</td>
6933+
<td>
6934+
<dfn id="dfn-xattr-decimal" for="extended attribute" export>takes a decimal</dfn>
6935+
</td>
6936+
<td>
6937+
<code>[ReflectDefault=2.0]</code>
6938+
</td>
6939+
</tr>
6940+
<tr>
6941+
<td>
6942+
<emu-nt><a href="#prod-ExtendedAttributeIntegerList">ExtendedAttributeIntegerList</a></emu-nt>
6943+
</td>
6944+
<td>
6945+
<dfn id="dfn-xattr-integer-list" for="extended attribute" export>takes an integer list</dfn>
6946+
</td>
6947+
<td>
6948+
<code>[ReflectRange=(2, 600)]</code>
6949+
</td>
6950+
</tr>
69076951
<tr>
69086952
<td>
69096953
<emu-nt><a href="#prod-ExtendedAttributeIdentList">ExtendedAttributeIdentList</a></emu-nt>
@@ -7037,6 +7081,17 @@ five forms are allowed.
70377081
ε
70387082
</pre>
70397083

7084+
<pre class="grammar" id="prod-IntegerList">
7085+
IntegerList :
7086+
integer Integers
7087+
</pre>
7088+
7089+
<pre class="grammar" id="prod-Integers">
7090+
Integers :
7091+
"," integer Integers
7092+
ε
7093+
</pre>
7094+
70407095
<pre class="grammar" id="prod-ExtendedAttributeNoArgs">
70417096
ExtendedAttributeNoArgs :
70427097
identifier
@@ -7052,6 +7107,21 @@ five forms are allowed.
70527107
identifier "=" identifier
70537108
</pre>
70547109

7110+
<pre class="grammar" id="prod-ExtendedAttributeString">
7111+
ExtendedAttributeString :
7112+
identifier "=" string
7113+
</pre>
7114+
7115+
<pre class="grammar" id="prod-ExtendedAttributeInteger">
7116+
ExtendedAttributeInteger :
7117+
identifier "=" integer
7118+
</pre>
7119+
7120+
<pre class="grammar" id="prod-ExtendedAttributeDecimal">
7121+
ExtendedAttributeDecimal :
7122+
identifier "=" decimal
7123+
</pre>
7124+
70557125
<pre class="grammar" id="prod-ExtendedAttributeWildcard">
70567126
ExtendedAttributeWildcard :
70577127
identifier "=" "*"
@@ -7062,6 +7132,11 @@ five forms are allowed.
70627132
identifier "=" "(" IdentifierList ")"
70637133
</pre>
70647134

7135+
<pre class="grammar" id="prod-ExtendedAttributeIntegerList">
7136+
ExtendedAttributeIntegerList :
7137+
identifier "=" "(" IntegerList ")"
7138+
</pre>
7139+
70657140
<pre class="grammar" id="prod-ExtendedAttributeNamedArgList">
70667141
ExtendedAttributeNamedArgList :
70677142
identifier "=" identifier "(" ArgumentList ")"

0 commit comments

Comments
 (0)