[csswg-drafts] [cssom-view] The spec is wrong about "the body element" disallowing frameset (#12079)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] The spec is wrong about "the body element" disallowing frameset ==
https://drafts.csswg.org/cssom-view/#dom-document-scrollingelement

> Note: [the body element](https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2) is different from HTML’s document.body in that the latter can return a frameset element.

That's wrong: both can return a frameset element.

https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2

> **The body element** of a document is the first of [the html element](https://html.spec.whatwg.org/multipage/dom.html#the-html-element-2)'s children that is either a [body](https://html.spec.whatwg.org/multipage/sections.html#the-body-element) element or a [frameset](https://html.spec.whatwg.org/multipage/obsolete.html#frameset) element, or null if there is no such element.
>
> The **`body`** attribute, on getting, must return [the body element](https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2) of the document (either a [body](https://html.spec.whatwg.org/multipage/sections.html#the-body-element) element, a [frameset](https://html.spec.whatwg.org/multipage/obsolete.html#frameset) element, or null).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12079 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 April 2025 20:17:48 UTC