meta-inhead-insertion-mode.html (641B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Encoding specified in the "charset" attribute should have precedence over "content" attribute.</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=koi8-r" charset="iso-8859-15"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead"> 7 <script src=/resources/testharness.js></script> 8 <script src=/resources/testharnessreport.js></script> 9 <script> 10 test(function () { 11 assert_equals(document.characterSet, "ISO-8859-15"); 12 }, "Encoding specified in the 'charset' attribute should have precedence over 'content' attribute."); 13 </script> 14 </body> 15 </html>