This vector shows which tags render HTML when using the shadowrootmode attribute with open. It first renders the tag with the attribute, counts the execution. Then without and counts execution again. If the execution count is 1 then we know the attribute had an effect.
<script>
window.scriptsExecuted = {};
function countExecution(tag) {
if(!scriptsExecuted[tag]) {
scriptsExecuted[tag] = 0;
}
scriptsExecuted[tag]++;
}
</script><$[data1] shadowrootmode="open"><script>countExecution('$[data1]')</script></$[data1]>
<$[data1]><script>countExecution('$[data1]')</script></$[data1]>for (const [tag, amount] of Object.entries(scriptsExecuted)) {
if(amount === 1) {
log(tag)
}
}<template shadowrootmode="open"><script>countExecution('template')</script></template>
<template><script>countExecution('template')</script></template>