mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 04:39:03 +02:00
--HG-- rename : testing/web-platform/meta/websockets/interfaces/WebSocket/events/011.html.ini => testing/web-platform/meta/IndexedDB/idbcursor_update_index5.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/events/011.html.ini => testing/web-platform/meta/IndexedDB/idbindex_get7.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/events/011.html.ini => testing/web-platform/meta/IndexedDB/idbindex_openCursor2.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/events/011.html.ini => testing/web-platform/meta/IndexedDB/idbindex_openKeyCursor3.htm.ini rename : testing/web-platform/moz.build => testing/web-platform/mozilla/tests/placeholder rename : testing/web-platform/moz.build => testing/web-platform/outbound/tests/placeholder rename : testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction-literal-1.xhtml => testing/web-platform/tests/dom/nodes/ProcessingInstruction-literal-1.xhtml rename : testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction-literal-2.xhtml => testing/web-platform/tests/dom/nodes/ProcessingInstruction-literal-2.xhtml rename : testing/web-platform/tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node.html => testing/web-platform/tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_pointerleave_after_pointercancel_touch.html => testing/web-platform/tests/pointerevents/pointerevent_pointerleave_after_pointercancel_touch-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_pointerleave_after_pointerup_nohover.html => testing/web-platform/tests/pointerevents/pointerevent_pointerleave_after_pointerup_nohover-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_pointerout_after_pointercancel_touch.html => testing/web-platform/tests/pointerevents/pointerevent_pointerout_after_pointercancel_touch-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_pointerout_after_pointerup_nohover.html => testing/web-platform/tests/pointerevents/pointerevent_pointerout_after_pointerup_nohover-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_pointerout_pen.html => testing/web-platform/tests/pointerevents/pointerevent_pointerout_pen-manual.html rename : testing/web-platform/tests/pointerevents/pointerevent_setpointercapture_disconnected.html => testing/web-platform/tests/pointerevents/pointerevent_setpointercapture_disconnected-manual.html rename : testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html => testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html extra : rebase_source : 1fb6206eb45537037d28bebf5bc9de02791c4a17
33 lines
2.6 KiB
HTML
33 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" >
|
||
<head>
|
||
<title>UTF-16BE BOM</title>
|
||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||
<link rel='help' href='https://html.spec.whatwg.org/multipage/#the-input-byte-stream'>
|
||
<script src="/resources/testharness.js"></script>
|
||
<script src="/resources/testharnessreport.js"></script>
|
||
<meta name='flags' content='http'>
|
||
<style type='text/css'>
|
||
.test div { width: 50px; }
|
||
</style>
|
||
|
||
<link rel="stylesheet" type="text/css" href="support/encodingtests-15.css">
|
||
</head>
|
||
<body>
|
||
|
||
<div class='test'><div id='box' class='ÜÀÚ'> </div></div>
|
||
|
||
<!-- Notes:
|
||
No encoding information is declared in the HTTP header or inside the document, other than in the BOM. The text of a class name in the test contains the following sequence of bytes: 0xC3 0xc0 0x53 0xc1 0xC3 0xc0 0xAC 0xc20 0xC3 0xc0 0x61 0xc1. The external, UTF-8-encoded stylesheet contains a selector with a sequence of characters that will only match the class name in the HTML if the page is read as UTF-16BE.
|
||
-->
|
||
|
||
<script>
|
||
test(function () {
|
||
assert_equals(document.getElementById('box').offsetWidth, 100);
|
||
}, 'A page with no encoding declarations, but with a UTF-16 little-endian BOM will be recognized as UTF-16.');
|
||
</script>
|
||
|
||
<div id=log></div>
|
||
|
||
</body>
|
||
</html>
|