**issue:** Per the spec, `^=`, `$=` and `~=` with an empty value match nothing. `[a*=""]` is correct. **repro (Bun HTMLRewriter):** ```js const html = '<i a="x"></i><i a=""></i><i a=" x"></i><i a="x "></i><i a="x y"></i>'; for (const sel of ['[a^=""]', '[a$=""]', '[a*=""]', '[a~=""]']) { let n = 0; await new HTMLRewriter().on(sel, { element() { n++; } }).transform(new Response(html)).text(); console.log(sel, n); } // [a^=""] 4 // [a$=""] 4 // [a*=""] 0 // [a~=""] 4 ``` **expected:** `0` for all four (as Chrome, Firefox, Safari) **system:** Bun 1.4.3 (lol-html fork based on v2.7.2); the matcher code is unchanged in v3.0.1 macOS 27.0, arm64
Activity
Make empty ^=, $= and ~= attribute selectors match nothing
Make empty ^=, $= and ~= attribute selectors match nothing
Make empty ^=, $= and ~= attribute selectors match nothing