<!doctype>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(() => {
const div = document.createElement('div');
div.innerHTML = '"Text"<br>new line';
assert_equals(div.innerText, '"Text"new line');
},
'innerText for an element without layout object');
</script>