| Andreu Botella | 7d9b5a5 | 2020-03-19 11:24:23 | [diff] [blame] | 1 | <!-- starts with a UTF-8 BOM --> |
| 2 | <!doctype html> | ||||
| 3 | <meta charset="windows-1252"> | ||||
| 4 | <script src=/resources/testharness.js></script> | ||||
| 5 | <script src=/resources/testharnessreport.js></script> | ||||
| 6 | <title>BOM handling</title> | ||||
| 7 | <div id=log></div> | ||||
| 8 | <script> | ||||
| 9 | |||||
| 10 | test( | ||||
| 11 | () => { | ||||
| 12 | assert_equals(document.characterSet.toLowerCase(), "utf-8"); | ||||
| 13 | }, | ||||
| 14 | "document.characterSet should match the BOM" | ||||
| 15 | ); | ||||
| 16 | |||||
| 17 | </script> | ||||