Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!doctype html>
<meta charset="utf-8" />
<title>HTML partial updates - trailing hash in for attribute</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="placeholder"><?start name="ph#a"?><?start name="ph#"?><?end><?end><?marker name="ph#"?></div>
<template for="ph#a">a</template>
<template for="ph#">b</template>
<script>
test(() => {
assert_equals(document.getElementById("placeholder").textContent, "ab");
}, "empty hash matches marker without name attribute");
</script>