Skip to content

Commit ae69b7d

Browse files
committed
Bug 1513178 [wpt PR 14455] - Encoding: make it clear sniffing for UTF-8 is not acceptable, a=testonly
Automatic update from web-platform-tests Encoding: make it clear sniffing for UTF-8 is not acceptable See whatwg/encoding#68 for background. -- wpt-commits: 305ff11b190e7e2bec120a27083f4ba43d6d976e wpt-pr: 14455 UltraBlame original commit: fc2cf66fe6fe7f880365058628d3a5b3f2c657fb
1 parent 41f139a commit ae69b7d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: testing/web-platform/tests/encoding/sniffing.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<script src=/resources/testharness.js></script>
3+
<script src=/resources/testharnessreport.js></script>
4+
<title>No (UTF-8) sniffing allowed</title>
5+
<div id=log></div>
6+
<div id=content>€€ Hello World! €€</div>
7+
<script>
8+
test(() => {
9+
assert_equals(document.getElementById("content").textContent, "\u00C2\u20AC\u00C2\u20AC Hello World! \u00C2\u20AC\u00C2\u20AC");
10+
assert_equals(document.characterSet, "windows-1252");
11+
});
12+
</script>

0 commit comments

Comments
 (0)