Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/dom/partial-updates/tentative/template-contentmethod-append-to-head.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<head contentname="head">
<meta charset="utf-8" />
<title >HTML partial updates - cannot patch head directly</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<template contentmethod="append">
<head contentname="head"><meta id="added" content="something"></head>
</template>
<script>
test(() => {
const meta = document.getElementById("added");
assert_equals(meta, null);
});
</script>