-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support :scope pseudo-class selector #97
Comments
A repro of import { DOMParser } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts";
const doc = new DOMParser().parseFromString(
`
<div>
<div class=outer>
<div class=inner></div>
</div>
<div class=other-outer></div>
</div>
`,
"text/html",
);
const parent = doc.querySelector("div");
console.log(
[...parent.querySelectorAll(":scope > div")].map((d) => d.className),
); Produces the following incorrect output with Deno DOM/nwsapi: [ "outer", "inner", "other-outer" ] When it's supposed to look like (when e.g. run in a standards-compliant browser) [ "outer", "other-outer" ] |
@b-fuze I was going to follow up about this today since it was reported to be fixed in |
Okay, I have just tested the latest version of NWSAPI (2.2.7) and... the bug is still there. NWSAPI uses this Unfortunate 😔 |
@b-fuze Thanks for the update and the link so that we can subscribe to follow along! |
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
The text was updated successfully, but these errors were encountered: