You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pup/Godeps/_workspace/src/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html

34 lines
2.6 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!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='http://www.w3.org/TR/html5/syntax.html#the-input-byte-stream'>
<script src="http://w3c-test.org/resources/testharness.js"></script>
<script src="http://w3c-test.org/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="encodingtests-15.css">
</head>
<body>
<div class='test'><div id='box' class='ÜÀÚ'>&#xA0;</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>