The reconcile package is used for DOM reconcilation in Isomorphic Go web applications.

UTF-16BE-BOM.html 2.6KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html lang="en" >
  3. <head>
  4. <title>UTF-16BE BOM</title>
  5. <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
  6. <link rel='help' href='http://www.w3.org/TR/html5/syntax.html#the-input-byte-stream'>
  7. <script src="http://w3c-test.org/resources/testharness.js"></script>
  8. <script src="http://w3c-test.org/resources/testharnessreport.js"></script>
  9. <meta name='flags' content='http'>
  10. <style type='text/css'>
  11. .test div { width: 50px; }
  12. </style>
  13. <link rel="stylesheet" type="text/css" href="encodingtests-15.css">
  14. </head>
  15. <body>
  16. <div class='test'><div id='box' class='ÜÀÚ'>&#xA0;</div></div>
  17. <!-- Notes:
  18. 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.
  19. -->
  20. <script>
  21. test(function () {
  22. assert_equals(document.getElementById('box').offsetWidth, 100);
  23. }, 'A page with no encoding declarations, but with a UTF-16 little-endian BOM will be recognized as UTF-16.');
  24. </script>
  25. <div id=log></div>
  26. </body>
  27. </html>