template-contentmethod-append-to-head.html (558B)
1 <!DOCTYPE HTML> 2 <head contentname="head"> 3 <meta charset="utf-8" /> 4 <title >HTML partial updates - cannot patch head directly</title> 5 <link rel=help href="https://github.com/WICG/declarative-partial-updates"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <body> 9 <template contentmethod="append"> 10 <head contentname="head"><meta id="added" content="something"></head> 11 </template> 12 <script> 13 test(() => { 14 const meta = document.getElementById("added"); 15 assert_equals(meta, null); 16 }); 17 </script>