Skip to content

Commit 94077f8

Browse files
[sanitizer-api] Call parseHTML/Unsafe on document. WICG/sanitizer-api@50ed6b6
1 parent 3448e3c commit 94077f8

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

html-sanitizer-api-ja.html

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110

111111
●●options
112112

113-
spec_date:2025-04-10
114-
trans_update:2025-04-17
113+
spec_date:2025-05-14
114+
trans_update:2025-05-23
115115
source_checked:240321
116116
page_state_key:
117117
original_url:https://wicg.github.io/sanitizer-api/
@@ -396,6 +396,7 @@
396396
I.Document:~DOM4#document
397397
I.DocumentFragment:~DOM4#documentfragment
398398
文書片:~DOM4#_concept-documentfragment
399+
I.DocumentType:~DOM4#documenttype
399400
I.Element:~DOM4#element
400401
I.Node:~DOM4#node
401402
I.ParentNode:~DOM4#parentnode
@@ -570,7 +571,6 @@
570571
attr.名前空間:~DOM4#concept-attribute-namespace
571572
~node文書:~DOM4#concept-node-document
572573
~nodeを除去する:~DOM4#concept-node-remove
573-
~node:~DOM4#concept-tree-root
574574
~shadow~host:~DOM4#element-shadow-host
575575
el.~shadow根:~DOM4#concept-element-shadow-root
576576
属性を除去する:~DOM4#concept-element-attributes-remove
@@ -1111,9 +1111,9 @@ <h3 title="Sanitizer API">2.1. 無毒化器~API</h3>
11111111
Let sanitizer be the result of calling get a sanitizer instance from options with options and false.
11121112
</li>
11131113
<li>
1114-
`~nodeを無毒化する$( %文書 の`根~node$, %無毒化器, ~F )
1114+
`~nodeを無毒化する$( %文書, %無毒化器, ~F )
11151115
1116-
Call sanitize on document’s root node with sanitizer and false.
1116+
Call sanitize on document with sanitizer and false.
11171117
</li>
11181118
<li>
11191119
~RET %文書
@@ -1164,9 +1164,9 @@ <h3 title="Sanitizer API">2.1. 無毒化器~API</h3>
11641164
Let sanitizer be the result of calling get a sanitizer instance from options with options and true.
11651165
</li>
11661166
<li>
1167-
`~nodeを無毒化する$( %文書 の`根~node$, %無毒化器, ~T )
1167+
`~nodeを無毒化する$( %文書, %無毒化器, ~T )
11681168
1169-
Call sanitize on document’s root node with sanitizer and true.
1169+
Call sanitize on document with sanitizer and true.
11701170
</li>
11711171
<li>
11721172
~RET %文書
@@ -1709,23 +1709,35 @@ <h3 title="Sanitization Algorithms">3.1. 無毒化~algo</h3>
17091709
~Assert:
17101710
%子 は次に挙げるいずれかを`実装-$する
17111711
1712-
`Text$I / `Comment$I / `Element$I
1712+
`Text$I / `Comment$I / `Element$I / `DocumentType$I
17131713
1714-
Assert: child implements Text, Comment, or Element.
1714+
Assert: child implements Text, Comment, Element, or DocumentType.
17151715
</p>
17161716

17171717
<p class="note">注記:
17181718
この~algoに渡される %~node は、
17191719
現時点では,~HTML構文解析器の出力に限られ、
17201720
この表明は,それに対しては満たされるべきである。
1721+
`DocumentType$I は、[
1722+
`parseHTML()$m, `parseHTMLUnsafe()$m
1723+
]用に限り,生じるべきである。
17211724
この~algoが将来に異なる文脈にて利用されるようになった場合、
17221725
この前提は,精査し直す必要がある。
17231726
1724-
Note: Currently, this algorithm is only called on output of the HTML parser for which this assertion should hold. If in the future this algorithm will be used in different contexts, this assumption needs to be re-examined.
1727+
Note: Currently, this algorithm is only called on output of the HTML parser for which this assertion should hold. DocumentType should only occur for parseHTML and parseHTMLUnsafe. If in the future this algorithm will be used in different contexts, this assumption needs to be re-examined.
17251728
</p>
17261729
</li>
17271730
<li>
17281731
~IF[
1732+
%子 は `DocumentType$I を`実装-$する
1733+
1734+
1735+
~CONTINUE
1736+
1737+
If child implements DocumentType, then continue.
1738+
</li>
1739+
<li>
1740+
~IF[
17291741
%子 は `Text$I を`実装-$する
17301742
17311743

0 commit comments

Comments
 (0)