Skip to content

Commit 706aaed

Browse files
Steinar H. Gundersonchromium-wpt-export-bot
authored andcommitted
Support 16-bit strings in NameToPseudoType().
Strings are allowed to be marked as 16-bit without containing any non-latin1 codepoints. This is rare, so the path we're taking isn't particularly fast (it's written to avoid any unsafe buffer manipulation). Fixed: 40064810 Change-Id: I1a082712399289eca6ad4809e3b7a429288a2cbe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7174094 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Steinar H Gunderson <[email protected]> Cr-Commit-Position: refs/heads/main@{#1548433}
1 parent dbaa0a9 commit 706aaed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<title>A selector can be used even after using the same name in a font-family</title>
3+
<link rel="help" href="https://crbug.com/40064810">
4+
<meta charset="utf-8">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<style>
8+
/* An emoji to force Unicode handling: ❤️ */
9+
.foo { font-family: empty; }
10+
</style>
11+
<script>
12+
test(function() {
13+
try {
14+
document.querySelector(':empty');
15+
} catch (e) {
16+
assert_unreached("Should not throw exception");
17+
}
18+
}, ':empty is a valid selector');
19+
</script>

0 commit comments

Comments
 (0)