Skip to content

Commit b5c6eed

Browse files
earnubsdomenic
authored andcommitted
Improve note on escaped characters in iframes srcdoc
Fixes whatwg#1429.
1 parent faa4c20 commit b5c6eed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29568,9 +29568,11 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
2956829568
</div>
2956929569

2957029570
<p class="note">In <span>the HTML syntax</span>, authors need only remember to use U+0022
29571-
QUOTATION MARK characters (") to wrap the attribute contents and then to escape all U+0022
29572-
QUOTATION MARK (") and U+0026 AMPERSAND (&amp;) characters, and to specify the <code
29573-
data-x="attr-iframe-sandbox">sandbox</code> attribute, to ensure safe embedding of content.</p>
29571+
QUOTATION MARK characters (") to wrap the attribute contents and then to escape all U+0026
29572+
AMPERSAND (&amp;) and U+0022 QUOTATION MARK (") characters, and to specify the <code
29573+
data-x="attr-iframe-sandbox">sandbox</code> attribute, to ensure safe embedding of content. (And
29574+
remember to escape ampersands before quotation marks, to ensure quotation marks become &amp;quot;
29575+
and not &amp;amp;quot;.)</p>
2957429576

2957529577
<p class="note">In XML the U+003C LESS-THAN SIGN character (&lt;) needs to be escaped as well. In
2957629578
order to prevent <a href="https://www.w3.org/TR/xml/#AVNormalize">attribute-value

0 commit comments

Comments
 (0)