You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dom: querySelector() rejects a selector whose identifier starts with a non-ASCII character, like #été #25501
CSS Syntax allows any code point from U+0080 in an ident and a hash token, and browsers accept document.querySelector('#été'). .élan fails the same way; a name whose non-ASCII character is not the first one, like .café, works, and so does the escaped form above.
The bundled lexbor tokenizer checks its ASCII name table before the non-ASCII branch in lxb_css_syntax_state_hash() (ext/lexbor/lexbor/css/syntax/state.c, the same on PHP-8.5 and master). lexbor fixed it after its last release, in lexbor/lexbor@ce777c50f2 ("CSS::Syntax: fixed non-ASCII ident code points") and lexbor/lexbor@3a5217afde ("CSS::Syntax: fixed non-ASCII ident code point ranges"); backporting them would fix it.
PHP Version
PHP 8.5.12 (lexbor 2.7.0); master has the same code.
Activity
ext/dom: querySelector() rejects a non-ASCII leading identifier.
ext/dom: querySelector() rejects a non-ASCII leading identifier.