@@ -35,6 +35,7 @@ spec:css2; type:property
3535spec:html; type:element;
3636 text:meta
3737 text:head
38+ text:body
3839spec:css2; type:dfn; text:document language
3940</pre>
4041
@@ -1281,7 +1282,8 @@ HTML <{iframe}> Details</h4>
12811282
12821283 * If a <code highlight=html> <meta name=responsive-embedded-sizing></code> element is encountered,
12831284 it is set to true.
1284- * If the <{head}> element is closed (explicitly or implicitly),
1285+ * If the <{body}> element is opened (explicitly or implicitly),
1286+ or inserted into the document by the parser,
12851287 it is set to false.
12861288
12871289 Once set to either true or false,
@@ -1291,6 +1293,16 @@ HTML <{iframe}> Details</h4>
12911293 is the only way for an embedded document to opt into this feature in HTML.
12921294 This means that SVG documents in <{iframe}> cannot do so.
12931295
1296+ Note: Due to quirks of the HTML parser,
1297+ a <{meta}> element can technically appear <em> between</em> the <{head}> and <{body}> elements,
1298+ and will be reparented into the <{head}> .
1299+ This is still a valid location for the <code> <meta name=responsive-embedded-sizing></code> element,
1300+ as the <{body}> has not yet been opened.
1301+ Note that most HTML elements will implicitly open a <{body}> element
1302+ even if the <{body}> start tag is not present,
1303+ and if the document completely lacks such an element,
1304+ an empty one is automatically generated and inserted.
1305+
12941306 The [=internal layout intrinsic size=] is first set
12951307 by the results of the embedded document's first layout
12961308 after it fires its {{DOMContentLoaded}} event,
0 commit comments