- From: valentin richard via GitHub <sysbot+gh@w3.org>
- Date: Sat, 18 Feb 2023 18:38:19 +0000
- To: public-css-archive@w3.org
In my opinion, `document.querySelector(":scope > *")` should return the `document.html` element and `document.querySelector(":scope")` the `document` itself. And `docFrag.querySelector(":scope > *")` its child elements and `docFrag.querySelector(":scope")` the document fragment. This would allow a better consistency and natural interpretation. However, it could be a little confuse if we expect only Element or null as a return. In this case, we may consider `querySelector(":scope")` always returning null if the parent is not an Element. -- GitHub Notification of comment by lifaon74 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7261#issuecomment-1435736223 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 18 February 2023 18:38:20 UTC