Skip to content

Commit a0b47a0

Browse files
[HTML] Remove more XML-derived attribute name validation whatwg/html@841fcfd
1 parent 43b0ff3 commit a0b47a0

5 files changed

Lines changed: 19 additions & 44 deletions

File tree

HTML-custom-ja.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@
172172

173173
●●options
174174

175-
spec_date:2025-06-25
176-
trans_update:2025-06-26
175+
spec_date:2025-07-16
176+
trans_update:2025-07-16
177177
source_checked:250314
178178
page_state_key:HTML
179179
spec_status:LS
@@ -868,7 +868,6 @@
868868
文字:~INFRA#code-point
869869
~ASCII英大文字:~INFRA#ascii-upper-alpha
870870
~ASCII英小文字:~INFRA#ascii-lower-alpha
871-
~XML互換:~HTMLINFRA#xml-compatible
872871

873872
~list:~INFRA#list
874873
:~INFRA#list-is-empty
@@ -909,6 +908,7 @@
909908
attr.局所~:~DOM4#concept-attribute-local-name
910909
attr.:~DOM4#concept-attribute-value
911910
attr.名前空間:~DOM4#concept-attribute-namespace
911+
妥当な属性~局所~:~DOM4#valid-attribute-local-name
912912
妥当な要素~局所~:~DOM4#valid-element-local-name
913913
~node文書:~DOM4#concept-node-document
914914
範囲:~DOM4#concept-range
@@ -2424,14 +2424,14 @@ <h4 title="Core concepts">4.13.3. 中核~概念</h4>
24242424
次を満たす
24252425
24262426
2427-
`~XML互換$である
2427+
`妥当な属性~局所~名$である
24282428
]~AND[
24292429
`~ASCII英大文字$を包含しない
24302430
24312431
</li>
24322432
</ul>
24332433
2434-
Any namespace-less attribute that is relevant to the element's functioning, as determined by the element's author, may be specified on an autonomous custom element, so long as the attribute name is XML-compatible and contains no ASCII upper alphas.\
2434+
Any namespace-less attribute that is relevant to the element's functioning, as determined by the element's author, may be specified on an autonomous custom element, so long as the attribute name is a valid attribute local name and contains no ASCII upper alphas.\
24352435
</div>
24362436

24372437
<p>

HTML-dependencies-ja.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136

137137
●●options
138138

139-
spec_date:2025-06-27
140-
trans_update:2025-06-28
139+
spec_date:2025-07-16
140+
trans_update:2025-07-16
141141
source_checked:240619
142142
page_state_key:HTML
143143
spec_status:LS
@@ -2574,6 +2574,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
25742574
<li id="abortsignal-aborted">`中止-済み@~DOM4#abortsignal-aborted$
25752575
<li id="signal-abort">`中止-を通達する@~DOM4#abortcontroller-signal-abort$
25762576
<li id="abortsignal-add">`通達に~algoを追加する@~DOM4#abortsignal-add$
2577+
<li id="valid-attribute-local-name">`妥当な属性~局所~名@~DOM4#valid-attribute-local-name$
25772578
<li id="valid-element-local-name">`妥当な要素~局所~名@~DOM4#valid-element-local-name$
25782579
</ul>
25792580

@@ -2704,6 +2705,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
27042705
• signal abort
27052706
• add
27062707
• The get an attribute by name algorithm
2708+
• valid attribute local name
27072709
• valid element local name
27082710
</dd>
27092711

HTML-dom-ja.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@
152152

153153
●●options
154154

155-
spec_date:2025-07-01
156-
trans_update:2025-07-02
155+
spec_date:2025-07-16
156+
trans_update:2025-07-16
157157
source_checked:240712
158158
page_state_key:HTML
159159
spec_status:LS
@@ -644,7 +644,6 @@
644644
h.Referrer-Policy:~REFERRER-POLICY#referrer-policy-header-dfn
645645
h.Last-Modified:~HTTPsem#field.last-modified
646646

647-
P.Name:https://www.w3.org/TR/xml/#NT-Name
648647
P.cookie-string:~HTTPcookie#p.cookie-string
649648

650649
sc.~about_blank:~HTMLdep#about:blank
@@ -905,7 +904,6 @@
905904
sct.~item:~INFRA#struct-item
906905

907906
~HTML要素:~HTMLINFRA#html-elements
908-
~XML互換:~HTMLINFRA#xml-compatible
909907
無視-:~HTMLINFRA#ignore
910908
既知な値のみに制限される:~HTMLcdom#limited-to-only-known-values
911909
~live:~HTMLINFRA#live
@@ -986,6 +984,7 @@
986984
~eventを発火する:~DOM4#concept-event-fire
987985
~text内容:~DOM4#concept-child-text-content
988986
子孫~text内容:~DOM4#concept-descendant-text-content
987+
妥当な属性~局所~:~DOM4#valid-attribute-local-name
989988

990989
~UTF-8符号化する:~ENCODING#utf-8-encode
991990
~BOMはそのままに~UTF-8復号する:~ENCODING#utf-8-decode-without-bom
@@ -8577,14 +8576,14 @@ <h5 title="Embedding custom non-visible data with the data-* attributes">3.2.6.6
85778576
`data-^l の後に 1 個以上の文字がある
85788577
</li>
85798578
<li>
8580-
`~XML互換$である
8579+
`妥当な属性~局所~名$である
85818580
<li>
85828581
`~ASCII英大文字$を包含しない
85838582
</li>
85848583
</ul>
85858584

85868585
8587-
A custom data attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no ASCII upper alphas.
8586+
A custom data attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is a valid attribute local name, and contains no ASCII upper alphas.
85888587
</div>
85898588

85908589
<p class="note">注記:
@@ -8980,14 +8979,12 @@ <h5 title="Embedding custom non-visible data with the data-* attributes">3.2.6.6
89808979
</li>
89818980
<li>
89828981
~IF[
8983-
%属性~名 は[
8984-
~XML `Name$P 生成規則
8985-
]に合致しない
8982+
%属性~名 は`妥当な属性~局所~名$でない
89868983
89878984
89888985
~THROW `InvalidCharacterError$E
89898986
8990-
If name does not match the XML Name production, throw an "InvalidCharacterError" DOMException.
8987+
If name is not a valid attribute local name, then throw an "InvalidCharacterError" DOMException.
89918988
</li>
89928989
<li>
89938990
コレに結付けられた`要素$dsmapの`属性~値を設定する$( %属性~名, %値 )

HTML-infrastructure-ja.html

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898

9999
●●options
100100

101-
spec_date:2025-07-10
102-
trans_update:2025-07-11
101+
spec_date:2025-07-16
102+
trans_update:2025-07-16
103103
source_checked:240619
104104
page_state_key:HTML
105105
spec_status:LS
@@ -191,7 +191,6 @@
191191
c.text/plain:~RFCx/rfc2046#section-4.1.3
192192
c.application/octet-stream:~RFCx/rfc2046#section-4.5.1
193193

194-
P.Name:~TR/xml/#NT-Name
195194
P.QName:~TR/REC-xml-names#NT-QName
196195

197196
展開名:~XPATH10#dt-expanded-name
@@ -216,7 +215,6 @@
216215
必須な下位資源:#critical-subresources
217216
~HTML要素:#html-elements
218217
要素~:#element-type
219-
~XML互換:#xml-compatible
220218
無視される:#ignore
221219
文書の中へ挿入された:#insert-an-element-into-a-document
222220
文書から除去された:#remove-an-element-from-a-document
@@ -1208,28 +1206,6 @@ <h4 title="XML compatibility">2.1.3. ~XMLとの互換性</h4>
12081206
12091207
(implicitly as defined above) the HTML namespace.
12101208
</li>
1211-
</ul>
1212-
1213-
<p>
1214-
所与の属性~名が
1215-
`~XML互換@
1216-
であるとは、
1217-
~AND↓ を満たすことをいう:
1218-
1219-
Attribute names are said to be XML-compatible if\
1220-
</p>
1221-
<ul>
1222-
<li>
1223-
`XML$r にて定義される `Name$P 生成規則に合致する
1224-
1225-
they match the Name production defined in XML and\
1226-
</li>
1227-
<li>
1228-
1229-
`003A^U `COLON^cn (:) を包含しない
1230-
1231-
they contain no U+003A COLON characters (:). [XML]
1232-
</li>
12331209
</ul>
12341210

12351211
</section>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h2>日本語訳ページ一覧</h2>
380380
HTML
381381
<a id="spec-list-html" href="#spec-list-html"></a>
382382
<p>
383-
(原文日付:<time>2025-07-12</time>
383+
(原文日付:<time>2025-07-16</time>
384384
<small>
385385
個々のページに示される これより過去の原文日付は、
386386
この日付まで,概ね(有意な)更新は無いことを表す。

0 commit comments

Comments
 (0)