The test asserts that template contents are serialized with innerHTML and its children are ignored.
Contents 1
Contents 2
<div>Contents 1
<template>Contents 2</template>
</div>