-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1622804 [wpt PR 22276] - [encoding] Tests for BOM detection., a=t…
…estonly Automatic update from web-platform-tests Encoding: BOM detection For whatwg/html#5359. -- wpt-commits: 7d9b5a5facaf0b9d986e63e0a031983899d30c79 wpt-pr: 22276
- Loading branch information
1 parent
7f74f84
commit 9cd33f0
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- starts with a UTF-8 BOM --> | ||
<!doctype html> | ||
<meta charset="windows-1252"> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<title>BOM handling</title> | ||
<div id=log></div> | ||
<script> | ||
|
||
test( | ||
() => { | ||
assert_equals(document.characterSet.toLowerCase(), "utf-8"); | ||
}, | ||
"document.characterSet should match the BOM" | ||
); | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content-Type: text/html; charset=windows-1252 |