Skip to content

Commit 4bef5bf

Browse files
[WebIDL] Introduce new extended attribute grammars whatwg/webidl@ef2df44
1 parent 2198f05 commit 4bef5bf

1 file changed

Lines changed: 54 additions & 4 deletions

File tree

WebIDL-ja.html

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@
485485
●●options
486486

487487
spec_title:Web IDL Standard
488-
spec_date:2025-07-28
489-
trans_update:2025-07-30
488+
spec_date:2025-07-30
489+
trans_update:2025-08-02
490490
source_checked:231227
491491
original_url:https://webidl.spec.whatwg.org/
492492
abbr_url:WEBIDL
@@ -867,6 +867,10 @@
867867
有名~引数~listを引数にとる:#dfn-xattr-named-argument-list
868868
有名~引数~list:#dfn-xattr-named-argument-list
869869
識別子を引数にとる:#dfn-xattr-identifier
870+
文字列を引数にとる:#dfn-xattr-string
871+
整数を引数にとる:#dfn-xattr-integer
872+
~decimalを引数にとる:#dfn-xattr-decimal
873+
整数~listを引数にとる:#dfn-xattr-integer-list
870874
識別子~listを引数にとる:#dfn-xattr-identifier-list
871875
~wildcardを引数にとる:#dfn-xattr-wildcard
872876

@@ -1077,6 +1081,7 @@
10771081
旧来のものでない:non-legacy
10781082
LegacyWindowAlias:legacy window alias
10791083
typedef:
1084+
decimal:
10801085

10811086
●データ演算
10821087
削除子:deleter::~
@@ -2200,6 +2205,13 @@
22002205
"," identifier Identifiers
22012206
ε
22022207

2208+
●IntegerList
2209+
integer Integers
2210+
2211+
●Integers
2212+
"," integer Integers
2213+
ε
2214+
22032215
●ExtendedAttributeNoArgs
22042216
identifier
22052217

@@ -2209,12 +2221,24 @@
22092221
●ExtendedAttributeIdent
22102222
identifier "=" identifier
22112223

2224+
●ExtendedAttributeString
2225+
identifier "=" string
2226+
2227+
●ExtendedAttributeInteger
2228+
identifier "=" integer
2229+
2230+
●ExtendedAttributeDecimal
2231+
identifier "=" decimal
2232+
22122233
●ExtendedAttributeWildcard
22132234
identifier "=" "*"
22142235

22152236
●ExtendedAttributeIdentList
22162237
identifier "=" "(" IdentifierList ")"
22172238

2239+
●ExtendedAttributeIntegerList
2240+
identifier "=" "(" IntegerList ")"
2241+
22182242
●ExtendedAttributeNamedArgList
22192243
identifier "=" identifier "(" ArgumentList ")"
22202244

@@ -2287,7 +2311,7 @@
22872311

22882312
Commits
22892313
<a href="https://github.com/whatwg/webidl/commits">GitHub whatwg/webidl/commits</a>
2290-
<a href="https://webidl.spec.whatwg.org/commit-snapshots/48eba6dfc58f83d31ae55d20bc72da571267c3d3/" id="commit-snapshot-link">Snapshot as of this commit</a>
2314+
<a href="https://webidl.spec.whatwg.org/commit-snapshots/ef2df4479f6981f1976778b134417f4ea58109e0/" id="commit-snapshot-link">Snapshot as of this commit</a>
22912315
<a href="https://twitter.com/webidl">@webidl</a>
22922316

22932317
Tests
@@ -14661,7 +14685,7 @@ <h3 title="Extended attributes">2.14. 拡張d属性</h3>
1466114685
`~IDL片$に~~現れるどの拡張d属性も、
1466214686
次の表tに挙げる文法~記号いずれかへの合致-により,それが属する( 1 個~以上の)形が決定される:
1466314687
14664-
The ExtendedAttribute grammar symbol matches nearly any sequence of tokens, however the extended attributes defined in this document only accept a more restricted syntax. Any extended attribute encountered in an IDL fragment is matched against the following five grammar symbols to determine which form (or forms) it is in:
14688+
The ExtendedAttribute grammar symbol matches nearly any sequence of tokens, however the extended attributes defined in this document only accept a more restricted syntax. Any extended attribute encountered in an IDL fragment is matched against the following grammar symbols to determine which form (or forms) it is in:
1466514689
</p>
1466614690

1466714691
<div>
@@ -14691,6 +14715,22 @@ <h3 title="Extended attributes">2.14. 拡張d属性</h3>
1469114715
<td>`識別子を引数にとる@
1469214716
<td>`[PutForwards=name]^c
1469314717

14718+
<tr><td>`ExtendedAttributeString$g
14719+
<td>`文字列を引数にとる@
14720+
<td>`[Reflect="popover"]^c
14721+
14722+
<tr><td>`ExtendedAttributeInteger$g
14723+
<td>`整数を引数にとる@
14724+
<td>`[ReflectDefault=2]^c
14725+
14726+
<tr><td>`ExtendedAttributeDecimal$g
14727+
<td>`~decimalを引数にとる@
14728+
<td>`[ReflectDefault=2.0]^c
14729+
14730+
<tr><td>`ExtendedAttributeIntegerList$g
14731+
<td>`整数~listを引数にとる@
14732+
<td>`[ReflectRange=(2, 600)]^c
14733+
1469414734
<tr><td>`ExtendedAttributeIdentList$g
1469514735
<td>`識別子~listを引数にとる@
1469614736
<td>`[Exposed=(Window,Worker)]^c
@@ -14707,6 +14747,10 @@ <h3 title="Extended attributes">2.14. 拡張d属性</h3>
1470714747
ExtendedAttributeArgList|takes an argument list|Not currently used; previously used by [Constructor(double x, double y)]
1470814748
ExtendedAttributeNamedArgList|takes a named argument list|[LegacyFactoryFunction=Image(DOMString src)]
1470914749
ExtendedAttributeIdent|takes an identifier|[PutForwards=name]
14750+
ExtendedAttributeString|takes a string|[Reflect="popover"]
14751+
ExtendedAttributeInteger|takes an integer|[ReflectDefault=2]
14752+
ExtendedAttributeDecimal|takes a decimal|[ReflectDefault=2.0]
14753+
ExtendedAttributeIntegerList|takes an integer list|[ReflectRange=(2, 600)]
1471014754
ExtendedAttributeIdentList|takes an identifier list|[Exposed=(Window,Worker)]
1471114755
ExtendedAttributeWildcard|takes a wildcard|[Exposed=*]
1471214756
</div>
@@ -14732,11 +14776,17 @@ <h3 title="Extended attributes">2.14. 拡張d属性</h3>
1473214776
OtherOrComma
1473314777
IdentifierList
1473414778
Identifiers
14779+
IntegerList
14780+
Integers
1473514781
ExtendedAttributeNoArgs
1473614782
ExtendedAttributeArgList
1473714783
ExtendedAttributeIdent
14784+
ExtendedAttributeString
14785+
ExtendedAttributeInteger
14786+
ExtendedAttributeDecimal
1473814787
ExtendedAttributeWildcard
1473914788
ExtendedAttributeIdentList
14789+
ExtendedAttributeIntegerList
1474014790
ExtendedAttributeNamedArgList
1474114791
"></data>
1474214792

0 commit comments

Comments
 (0)