| Summary: | querySelector() throws exception for -webkit-prefixed pseudo elements | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Derk-Jan Hartman <hartman.wiki> |
| Component: | DOM | Assignee: | Anne van Kesteren <annevk> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ahmad.saleem792, annevk, ap, benjamin, bfulgham, dino, hyatt, joepeck, koivisto, ntim, rniwa, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | HasReduction, InRadar |
| Version: | Safari 9 | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jsfiddle.net/TheDJ/db27kn7p/ | ||
|
Description
Derk-Jan Hartman
2015-09-15 05:45:44 PDT
Downstream ticket on Wikipedia where we noticed this: https://phabricator.wikimedia.org/T112650 Related ticket in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1204880 This is still the case.
For example:
document.querySelector("input::placeholder");
Outputs an Exception in Safari, but returns null in Firefox and Chrome.
Still a problem in Safari 14 Still a problem in 15.1 I am able to reproduce this in Safari Technical Preview 152 as well. It does not show 'null' similar to other browsers (Chrome Canary 107 and Firefox Nightly 106) for third case - console.log( document.querySelector( 'input::-webkit-search-decoration' ) ); Still present in Safari 16.4 Pull request: https://github.com/WebKit/WebKit/pull/22038 Committed 272337@main (a23b77e8bca1): <https://commits.webkit.org/272337@main> Reviewed commits have been landed. Closing PR #22038 and removing active labels. Derk-Jan, sorry voor de vertraging. Als Wikipedia nog andere problemen heeft hoor ik er graag van. Kan niks beloven, maar hopelijk duurt het niet nog een keer acht jaar. |