http-equiv-enumerated-ascii-case-insensitive.html (1326B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="help" href="https://html.spec.whatwg.org/#attr-meta-http-equiv"> 4 <link rel="help" href="https://html.spec.whatwg.org/#enumerated-attribute"> 5 <meta name="assert" content="meta@http-equiv values are ASCII case-insensitive"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script> 9 async_test(function() { 10 let loaded = 0; 11 12 // we use a message rather than the iframe’s load event to avoid dealing with 13 // spurious load events that some browsers dispatch on the initial about:blank 14 addEventListener("message", this.step_func(event => { 15 if (++loaded == 3) { 16 const iframe = document.querySelectorAll("iframe"); 17 18 assert_equals(iframe[0].contentWindow.inline, 19 undefined, "lowercase valid"); 20 assert_equals(iframe[1].contentWindow.inline, 21 undefined, "mixed case valid"); 22 assert_equals(iframe[2].contentWindow.inline, 23 true, "non-ASCII invalid"); 24 25 this.done(); 26 } 27 })); 28 }, "keyword content-security-policy"); 29 </script> 30 <iframe src="http-equiv-enumerated-ascii-case-insensitive-lower.html"></iframe> 31 <iframe src="http-equiv-enumerated-ascii-case-insensitive-mixed.html"></iframe> 32 <iframe src="http-equiv-enumerated-ascii-case-insensitive-other.html"></iframe>