kitesurf · WPT

FAIL
expected FAIL · 375 ms
▶ run in kitesurf
Test
/html/dom/elements/the-innertext-and-outertext-properties/getter.html
Actual
FAIL
Expected
FAIL
Unexpected
no
Duration
375 ms
Harness
OK
Counts
Reason
Run
https://kitesurf.rendering.cfdata.org/?url=http%3A%2F%2Fwpt.live%2Fhtml%2Fdom%2Felements%2Fthe-innertext-and-outertext-properties%2Fgetter.html ↗
Upstream
view on github.com/web-platform-tests/wpt ↗

Subtests

statussubtestmessage
PASSSimplest possible test ("<div>abc")
FAILLeading whitespace removed ("<div> abc")assert_equals: innerText expected "abc" but got " abc"
FAILTrailing whitespace removed ("<div>abc ")assert_equals: innerText expected "abc" but got "abc "
FAILInternal whitespace compressed ("<div>abc def")assert_equals: innerText expected "abc def" but got "abc def"
FAIL\n converted to space ("<div>abc\ndef")assert_equals: innerText expected "abc def" but got "abc\ndef"
FAIL\r converted to space ("<div>abc\rdef")assert_equals: innerText expected "abc def" but got "abc\ndef"
FAIL\t converted to space ("<div>abc\tdef")assert_equals: innerText expected "abc def" but got "abc\tdef"
FAILTrailing whitespace before hard line break removed ("<div>abc <br>def")assert_equals: innerText expected "abc\ndef" but got "abc def"
FAILLeading whitespace after hard line break removed ("<div>abc<br> def")assert_equals: innerText expected "abc\ndef" but got "abc def"
PASSLeading whitespace preserved ("<pre> abc")
PASSTrailing whitespace preserved ("<pre>abc ")
PASSInternal whitespace preserved ("<pre>abc def")
PASS\n preserved ("<pre>abc\ndef")
PASS\r converted to newline ("<pre>abc\rdef")
PASS\t preserved ("<pre>abc\tdef")
FAILTwo <pre> siblings ("<div><pre>abc</pre><pre>def</pre>")assert_equals: innerText expected "abc\ndef" but got "abcdef"
PASSLeading whitespace preserved ("<div style='white-space:pre'> abc")
PASSTrailing whitespace preserved ("<div style='white-space:pre'>abc ")
PASSInternal whitespace preserved ("<div style='white-space:pre'>abc def")
PASS\n preserved ("<div style='white-space:pre'>abc\ndef")
PASS\r converted to newline ("<div style='white-space:pre'>abc\rdef")
PASS\t preserved ("<div style='white-space:pre'>abc\tdef")
PASSLeading whitespace preserved ("<span style='white-space:pre'> abc")
PASSTrailing whitespace preserved ("<span style='white-space:pre'>abc ")
PASSInternal whitespace preserved ("<span style='white-space:pre'>abc def")
PASS\n preserved ("<span style='white-space:pre'>abc\ndef")
PASS\r converted to newline ("<span style='white-space:pre'>abc\rdef")
PASS\t preserved ("<span style='white-space:pre'>abc\tdef")
FAILLeading whitespace removed ("<div style='white-space:pre-line'> abc")assert_equals: innerText expected "abc" but got " abc"
FAILTrailing whitespace removed ("<div style='white-space:pre-line'>abc ")assert_equals: innerText expected "abc" but got "abc "
FAILInternal whitespace collapsed ("<div style='white-space:pre-line'>abc def")assert_equals: innerText expected "abc def" but got "abc def"
PASS\n preserved ("<div style='white-space:pre-line'>abc\ndef")
PASS\r converted to newline ("<div style='white-space:pre-line'>abc\rdef")
FAIL\t converted to space ("<div style='white-space:pre-line'>abc\tdef")assert_equals: innerText expected "abc def" but got "abc\tdef"
FAILWhitespace collapses across element boundaries ("<div><span>abc </span> def")assert_equals: innerText expected "abc def" but got "abc def"
FAILWhitespace collapses across element boundaries ("<div><span>abc </span><span></span> def")assert_equals: innerText expected "abc def" but got "abc def"
FAILWhitespace collapses across element boundaries ("<div><span>abc </span><span style='white-space:pre'></span> def")assert_equals: innerText expected "abc def" but got "abc def"
PASSWhitespace around <input> should not be collapsed ("<div>abc <input> def")
PASSWhitespace around inline-block should not be collapsed ("<div>abc <span style='display:inline-block'></span> def")
FAILTrailing space at end of inline-block should be collapsed ("<div>abc <span style='display:inline-block'> def </span> ghi")assert_equals: innerText expected "abc def ghi" but got "abc def ghi"
PASSWhitespace around inline-flex should not be collapsed ("<div>abc <span style='display:inline-flex'></span> def")
FAILTrailing space at end of inline-flex should be collapsed ("<div>abc <span style='display:inline-flex'> def </span> ghi")assert_equals: innerText expected "abc def ghi" but got "abc def ghi"
PASSWhitespace around inline-grid should not be collapsed ("<div>abc <span style='display:inline-grid'></span> def")
FAILTrailing space at end of grid-flex should be collapsed ("<div>abc <span style='display:inline-grid'> def </span> ghi")assert_equals: innerText expected "abc def ghi" but got "abc def ghi"
FAILWhitespace between <input> and block should be collapsed ("<div><input> <div>abc</div>")assert_equals: innerText expected "abc" but got " abc"
FAILWhitespace between inline-block and block should be collapsed ("<div><span style='inline-block'></span> <div>abc</div>")assert_equals: innerText expected "abc" but got " abc"
FAILWhitespace between inline-flex and block should be collapsed ("<div><span style='inline-flex'></span> <div>abc</div>")assert_equals: innerText expected "abc" but got " abc"
FAILWhitespace between inline-grid and block should be collapsed ("<div><span style='inline-grid'></span> <div>abc</div>")assert_equals: innerText expected "abc" but got " abc"
PASSWhitespace around <img> should not be collapsed ("<div>abc <img> def")
PASSWhitespace around <img> should not be collapsed ("<div>abc <img width=1 height=1> def")
PASSLeading whitesapce should not be collapsed ("<div><img> abc")
PASSTrailing whitesapce should not be collapsed ("<div>abc <img>")
FAILWhitespace around empty span should be collapsed ("<div>abc <b></b> def")assert_equals: innerText expected "abc def" but got "abc def"
FAILWhitespace around empty spans should be collapsed ("<div>abc <b><i></i></b> def")assert_equals: innerText expected "abc def" but got "abc def"
PASS<canvas> should not collapse following space ("<div><canvas></canvas> abc")
FAILReplaced element <img> with display:block should be treated as block-level ("<div>abc <img style='display:block'> def")assert_equals: innerText expected "abc\ndef" but got "abc def"
FAILReplaced element <canvas> with display:block should be treated as block-level ("<div>abc <canvas style='display:block'></canvas> def")assert_equals: innerText expected "abc\ndef" but got "abc def"
PASSSoft line breaks ignored ("<div style='width:0'>abc def")
PASSSoft line break at hyphen ignored ("<div style='width:0'>abc-def")
PASSWhitespace text node preserved ("<div style='width:0'><span>abc</span> <span>def</span>")
PASSSoft breaks ignored in presence of word-break:break-word ("<div style='width:1px; word-break:break-word'>Hello Kitty</div>")
PASSElement boundaries ignored for soft break handling (1) ("<div style='width:1px; word-break:break-word'><x>Hello</x> <x>Kitty</x></div>")
FAILWhitespace collapses across element boundaries at soft break (1) ("<div style='width:1px; word-break:break-word'><x>Hello</x> <x> Kitty</x></div>")assert_equals: innerText expected "Hello Kitty" but got "Hello Kitty"
PASSElement boundaries ignored for soft break handling (2) ("<div style='width:1px; word-break:break-word'><x>Hello</x><x> Kitty</x></div>")
FAILWhitespace collapses across element boundaries at soft break (2) ("<div style='width:1px; word-break:break-word'><x>Hello </x> <x>Kitty</x></div>")assert_equals: innerText expected "Hello Kitty" but got "Hello Kitty"
PASSElement boundaries ignored for soft break handling (3) ("<div style='width:1px; word-break:break-word'><x>Hello </x><x>Kitty</x></div>")
FAILWhitespace collapses across element boundaries at soft break (3) ("<div style='width:1px; word-break:break-word'><x>Hello </x><x> Kitty</x></div>")assert_equals: innerText expected "Hello Kitty" but got "Hello Kitty"
FAILWhitespace collapses across element boundaries at soft break (4) ("<div style='width:1px; word-break:break-word'><x>Hello </x> <x> Kitty</x></div>")assert_equals: innerText expected "Hello Kitty" but got "Hello Kitty"
PASSElement boundaries ignored for soft break handling (4) ("<div style='width:1px; word-break:break-word'><x>Hello</x> Kitty</div>")
PASSElement boundaries ignored for soft break handling (5) ("<div style='width:1px; word-break:break-word'><x>Hello </x>Kitty</div>")
FAILSoft breaks ignored, text-transform applied ("<div style='width:1px; word-break:break-word; text-transform:uppercase'>Hello Kitty</div>")assert_equals: innerText expected "HELLO KITTY" but got "Hello Kitty"
FAIL<br> returned as newline, following space collapsed ("<div style='width:1px; word-break:break-word'>Hello<br> Kitty</div>")assert_equals: innerText expected "Hello\nKitty" but got "Hello Kitty"
FAIL<br> returned as newline, preceding space collapsed ("<div style='width:1px; word-break:break-word'>Hello <br>Kitty</div>")assert_equals: innerText expected "Hello\nKitty" but got "Hello Kitty"
FAIL<br> returned as newline, adjacent spaces collapsed across element boundaries ("<div style='width:1px; word-break:break-word'><x>Hello </x> <br> <x> Kitty</x></div>")assert_equals: innerText expected "Hello\nKitty" but got "Hello Kitty"
FAIL::first-line styles applied ("<div class='first-line-uppercase'>abc")assert_equals: innerText expected "ABC" but got "abc"
FAIL::first-line styles applied ("<div class='first-line-uppercase' style='width:0'>abc def")assert_equals: innerText expected "ABC def" but got "abc def"
FAIL::first-letter styles applied ("<div class='first-letter-uppercase' style='width:0'>abc def")assert_equals: innerText expected "Abc def" but got "abc def"
PASS::first-letter float ignored ("<div class='first-letter-float' style='width:0'>abc def")
PASS&nbsp; preserved ("<div>&nbsp;")
PASSdisplay:none container ("<div style='display:none'>abc")
PASSNo whitespace compression in display:none container ("<div style='display:none'>abc def")
PASSNo removal of leading/trailing whitespace in display:none container ("<div style='display:none'> abc def ")
FAILdisplay:none child not rendered ("<div>123<span style='display:none'>abc")assert_equals: innerText expected "123" but got "123abc"
FAILdisplay:none p child not rendered ("<div>123<p style='display:none'>abc")assert_equals: innerText expected "123" but got "123abc"
PASSdisplay:none container with non-display-none target child ("<div style='display:none'><span id='target'>abc")
PASSdisplay:none container with non-display-none p target child ("<div style='display:none'><p id='target'>abc")
PASSnon-display-none child of svg ("<div id='target'>abc")
PASSdisplay:none child of svg ("<div style='display:none' id='target'>abc")
PASSchild of display:none child of svg ("<div style='display:none'><div id='target'>abc")
PASSdisplay:contents container ("<div style='display:contents'>abc")
PASSdisplay:contents container ("<div><div style='display:contents'>abc")
PASSdisplay:contents rendered ("<div>123<span style='display:contents'>abc")
FAILdisplay:contents not processed via textContent ("<div style='display:contents'> ")assert_equals: innerText expected "" but got " "
FAILdisplay:contents not processed via textContent ("<div><div style='display:contents'> ")assert_equals: innerText expected "" but got " "
FAILvisibility:hidden container ("<div style='visibility:hidden'>abc")assert_equals: innerText expected "" but got "abc"
FAILvisibility:hidden child not rendered ("<div>123<span style='visibility:hidden'>abc")assert_equals: innerText expected "123" but got "123abc"
FAILvisibility:visible child rendered ("<div style='visibility:hidden'>123<span style='visibility:visible'>abc")assert_equals: innerText expected "abc" but got "123abc"
FAILvisibility:collapse row-group ("<table><tbody style='visibility:collapse'><tr><td>abc")assert_equals: innerText expected "" but got "abc"
FAILvisibility:collapse row ("<table><tr style='visibility:collapse'><td>abc")assert_equals: innerText expected "" but got "abc"
FAILvisibility:collapse cell ("<table><tr><td style='visibility:collapse'>abc")assert_equals: innerText expected "" but got "abc"
PASSvisibility:collapse row-group with visible cell ("<table><tbody style='visibility:collapse'><tr><td style='visibility:visible'>abc")
PASSvisibility:collapse row with visible cell ("<table><tr style='visibility:collapse'><td style='visibility:visible'>abc")
FAILvisibility:collapse honored on flex item ("<div style='display:flex'><span style='visibility:collapse'>1</span><span>2</span></div>")assert_equals: innerText expected "2" but got "12"
FAILvisibility:collapse honored on grid item ("<div style='display:grid'><span style='visibility:collapse'>1</span><span>2</span></div>")assert_equals: innerText expected "2" but got "12"
PASSopacity:0 container ("<div style='opacity:0'>abc")
FAILWhitespace compression in opacity:0 container ("<div style='opacity:0'>abc def")assert_equals: innerText expected "abc def" but got "abc def"
FAILRemove leading/trailing whitespace in opacity:0 container ("<div style='opacity:0'> abc def ")assert_equals: innerText expected "abc def" but got " abc def "
PASSopacity:0 child rendered ("<div>123<span style='opacity:0'>abc")
PASSGenerated content not included ("<div class='before'>")
PASSGenerated content on child not included ("<div><div class='before'>")
PASS<button> contents preserved ("<button>abc")
PASS<fieldset> contents preserved ("<fieldset>abc")
PASS<fieldset> <legend> contents preserved ("<fieldset><legend>abc")
PASS<input> contents ignored ("<input type='text' value='abc'>")
FAIL<textarea> contents ignored ("<textarea>abc")assert_equals: innerText expected "" but got "abc"
FAIL<iframe> contents ignored ("<iframe>abc")assert_equals: innerText expected "" but got "abc"
FAIL<iframe> contents ignored ("<iframe><div id='target'>abc")assert_equals: innerText expected "" but got "<div id='target'>abc"
PASS<iframe> subdocument ignored ("<iframe src='data:text/html,abc'>")
FAIL<audio> contents ignored ("<audio style='display:block'>abc")assert_equals: innerText expected "" but got "abc"
PASS<audio> contents ok for element not being rendered ("<audio style='display:block'><source id='target' class='poke' style='display:block'>")
PASS<audio> contents ok for element not being rendered ("<audio style='display:block'><source id='target' class='poke' style='display:none'>")
FAIL<video> contents ignored ("<video>abc")assert_equals: innerText expected "" but got "abc"
PASS<video> contents ok for element not being rendered ("<video style='display:block'><source id='target' class='poke' style='display:block'>")
PASS<video> contents ok for element not being rendered ("<video style='display:block'><source id='target' class='poke' style='display:none'>")
FAIL<canvas> contents ignored ("<canvas>abc")assert_equals: innerText expected "" but got "abc"
PASS<canvas><div id='target'> contents ok for element not being rendered ("<canvas><div id='target'>abc")
PASS<img> alt text ignored ("<img alt='abc'>")
FAIL<img> contents ignored ("<img src='about:blank' class='poke'>")assert_equals: innerText expected "" but got "abc"
PASS<svg> text contents preserved ("<div><svg><text>abc</text></svg></div>")
FAIL<svg><defs> text contents ignored ("<div><svg><defs><text>abc</text></defs></svg></div>")assert_equals: innerText expected "" but got "abc"
FAIL<svg> non-rendered text ignored ("<div><svg><stop>abc</stop></svg></div>")assert_equals: innerText expected "" but got "abc"
PASS<foreignObject> contents preserved ("<svg><foreignObject><span id='target'>abc</span></foreignObject></svg>")
FAIL<select size='1'> contents of options preserved ("<select size='1'><option>abc</option><option>def")assert_equals: innerText expected "abc\ndef" but got "abcdefabc"
FAIL<select size='2'> contents of options preserved ("<select size='2'><option>abc</option><option>def")assert_equals: innerText expected "abc\ndef" but got "abcdefabc"
PASS<select size='1'> contents of target option preserved ("<select size='1'><option id='target'>abc</option><option>def")
PASS<select size='2'> contents of target option preserved ("<select size='2'><option id='target'>abc</option><option>def")
PASSempty <select> ("<div>a<select></select>bc")
FAILempty <optgroup> in <select> ("<div>a<select><optgroup></select>bc")assert_equals: innerText expected "a\nbc" but got "abc"
FAILempty <option> in <select> ("<div>a<select><option></select>bc")assert_equals: innerText expected "a\nbc" but got "abc"
FAIL<select> containing text node child ("<select class='poke'></select>")assert_equals: innerText expected "" but got "abc"
FAIL<optgroup> containing <optgroup> ("<select><optgroup class='poke-optgroup'></select>")assert_equals: innerText expected "" but got "abc"
PASS<optgroup> containing <option> ("<select><optgroup><option>abc</select>")
FAIL<div> in <option> ("<select><option class='poke-div'>123</select>")assert_equals: innerText expected "123\nabc" but got "123abc123"
FAILempty <optgroup> in <div> ("<div>a<optgroup></optgroup>bc")assert_equals: innerText expected "a\nbc" but got "abc"
FAIL<optgroup> in <div> ("<div>a<optgroup>123</optgroup>bc")assert_equals: innerText expected "a\nbc" but got "a123bc"
FAILempty <option> in <div> ("<div>a<option></option>bc")assert_equals: innerText expected "a\nbc" but got "abc"
FAIL<option> in <div> ("<div>a<option>123</option>bc")assert_equals: innerText expected "a\n123\nbc" but got "a123bc"
FAILundefined ("<select><option>one</option><div><optgroup label=optgroup><div><option><span>two")assert_equals: innerText expected "one\ntwo" but got "onetwoone"
PASS<button> contents preserved ("<div><button>abc")
PASS<fieldset> contents preserved ("<div><fieldset>abc")
PASS<fieldset> <legend> contents preserved ("<div><fieldset><legend>abc")
PASS<input> contents ignored ("<div><input type='text' value='abc'>")
FAIL<textarea> contents ignored ("<div><textarea>abc")assert_equals: innerText expected "" but got "abc"
FAIL<select size='1'> contents of options preserved ("<div><select size='1'><option>abc</option><option>def")assert_equals: innerText expected "abc\ndef" but got "abcdefabc"
FAIL<select size='2'> contents of options preserved ("<div><select size='2'><option>abc</option><option>def")assert_equals: innerText expected "abc\ndef" but got "abcdefabc"
FAIL<iframe> contents ignored ("<div><iframe>abc")assert_equals: innerText expected "" but got "abc"
PASS <iframe> subdocument ignored ("<div><iframe src='data:text/html,abc'>")
FAIL<audio> contents ignored ("<div><audio>abc")assert_equals: innerText expected "" but got "abc"
FAIL<video> contents ignored ("<div><video>abc")assert_equals: innerText expected "" but got "abc"
FAIL<canvas> contents ignored ("<div><canvas>abc")assert_equals: innerText expected "" but got "abc"
FAIL<object> contents ignored ("<div><object>abc")assert_equals: innerText expected "" but got "abc"
PASS<img> alt text ignored ("<div><img alt='abc'>")
FAILNewline at block boundary ("<div>123<div>abc</div>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNewline at display:block boundary ("<div>123<span style='display:block'>abc</span>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILEmpty block induces single line break ("<div>abc<div></div>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAILConsecutive empty blocks ignored ("<div>abc<div></div><div></div>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
PASSNo blank lines around <p> alone ("<div><p>abc")
FAILNo blank lines around <p> followed by only collapsible whitespace ("<div><p>abc</p> ")assert_equals: innerText expected "abc" but got "abc "
FAILNo blank lines around <p> preceded by only collapsible whitespace ("<div> <p>abc</p>")assert_equals: innerText expected "abc" but got " abc"
FAILBlank line between consecutive <p>s ("<div><p>abc<p>def")assert_equals: innerText expected "abc\n\ndef" but got "abcdef"
FAILBlank line between consecutive <p>s separated only by collapsible whitespace ("<div><p>abc</p> <p>def")assert_equals: innerText expected "abc\n\ndef" but got "abc def"
FAILBlank line between consecutive <p>s separated only by empty block ("<div><p>abc</p><div></div><p>def")assert_equals: innerText expected "abc\n\ndef" but got "abcdef"
FAILBlank lines between <p>s separated by non-empty block ("<div><p>abc</p><div>123</div><p>def")assert_equals: innerText expected "abc\n\n123\n\ndef" but got "abc123def"
FAILBlank lines around a <p> in its own block ("<div>abc<div><p>123</p></div>def")assert_equals: innerText expected "abc\n\n123\n\ndef" but got "abc123def"
FAILBlank line before <p> ("<div>abc<p>def")assert_equals: innerText expected "abc\n\ndef" but got "abcdef"
FAILBlank line after <p> ("<div><p>abc</p>def")assert_equals: innerText expected "abc\n\ndef" but got "abcdef"
FAILOne blank line between <p>s, ignoring empty <p>s ("<div><p>abc<p></p><p></p><p>def")assert_equals: innerText expected "abc\n\ndef" but got "abcdef"
PASSInvisible <p> doesn't induce extra line breaks ("<div style='visibility:hidden'><p><span style='visibility:visible'>abc</span></p>\n<div style='visibility:visible'>def</div>")
FAIL<pre> trailing newlines don't suppress <p> blank line ("<div><pre>abc\n\n</pre><p>def")assert_equals: innerText expected "abc\n\n\n\ndef" but got "abc\n\ndef"
FAILNo blank lines around <div> with margin ("<div>abc<div style='margin:2em'>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
PASSNo newlines at display:inline-block boundary ("<div>123<span style='display:inline-block'>abc</span>def")
FAILLeading/trailing space removal at display:inline-block boundary ("<div>123<span style='display:inline-block'> abc </span>def")assert_equals: innerText expected "123abcdef" but got "123 abc def"
FAILLeading/trailing space removal at display:inline-flex boundary ("<div>123<span style='display:inline-flex'> abc </span>def")assert_equals: innerText expected "123abcdef" but got "123 abc def"
FAILLeading/trailing space removal at display:inline-grid boundary ("<div>123<span style='display:inline-grid'> abc </span>def")assert_equals: innerText expected "123abcdef" but got "123 abc def"
FAILBlank lines around <p> even without margin ("<div>123<p style='margin:0px'>abc</p>def")assert_equals: innerText expected "123\n\nabc\n\ndef" but got "123abcdef"
FAILNo blank lines around <h1> ("<div>123<h1>abc</h1>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNo blank lines around <h2> ("<div>123<h2>abc</h2>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNo blank lines around <h3> ("<div>123<h3>abc</h3>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNo blank lines around <h4> ("<div>123<h4>abc</h4>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNo blank lines around <h5> ("<div>123<h5>abc</h5>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAILNo blank lines around <h6> ("<div>123<h6>abc</h6>def")assert_equals: innerText expected "123\nabc\ndef" but got "123abcdef"
FAIL2 blank lines around <p> even when display:block ("<div>123<p style='display:block'>abc")assert_equals: innerText expected "123\n\nabc" but got "123abc"
FAIL2 blank lines around <p> even when display:inline-block ("<div>123<p style='display:inline-block'>abc")assert_equals: innerText expected "123\n\nabc" but got "123abc"
PASS<span> boundaries are irrelevant ("<div>123<span>abc</span>def")
PASS<span> boundaries are irrelevant ("<div>123 <span>abc</span> def")
PASS<span> boundaries are irrelevant ("<div style='width:0'>123 <span>abc</span> def")
PASS<em> gets no special treatment ("<div>123<em>abc</em>def")
PASS<b> gets no special treatment ("<div>123<b>abc</b>def")
PASS<i> gets no special treatment ("<div>123<i>abc</i>def")
PASS<strong> gets no special treatment ("<div>123<strong>abc</strong>def")
PASS<tt> gets no special treatment ("<div>123<tt>abc</tt>def")
PASS<code> gets no special treatment ("<div>123<code>abc</code>def")
PASSsoft hyphen preserved ("<div>abc&shy;def")
PASSsoft hyphen preserved ("<div style='width:0'>abc&shy;def")
FAILIgnoring non-rendered table whitespace ("<div><table style='white-space:pre'> <td>abc</td> </table>")assert_equals: innerText expected "abc" but got " abc "
FAILTab-separated table cells ("<div><table><tr><td>abc<td>def</table>")assert_equals: innerText expected "abc\tdef" but got "abcdef"
FAILTab-separated table cells including empty cells ("<div><table><tr><td>abc<td><td>def</table>")assert_equals: innerText expected "abc\t\tdef" but got "abcdef"
FAILTab-separated table cells including trailing empty cells ("<div><table><tr><td>abc<td><td></table>")assert_equals: innerText expected "abc\t\t" but got "abc"
FAILNewline-separated table rows ("<div><table><tr><td>abc<tr><td>def</table>")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAILNewlines around table ("<div>abc<table><td>def</table>ghi")assert_equals: innerText expected "abc\ndef\nghi" but got "abcdefghi"
FAILTab-separated table cells in a border-collapse table ("<div><table style='border-collapse:collapse'><tr><td>abc<td>def</table>")assert_equals: innerText expected "abc\tdef" but got "abcdef"
PASStfoot not reordered ("<div><table><tfoot>x</tfoot><tbody>y</tbody></table>")
FAIL ("<table><tfoot><tr><td>footer</tfoot><thead><tr><td style='visibility:collapse'>thead</thead><tbody><tr><td>tbody</tbody></table>")assert_equals: innerText expected "footer\n\ntbody" but got "footertheadtbody"
PASSNo tab on table-cell itself ("<table><tr><td id=target>abc</td><td>def</td>")
FAILNo newline on table-row itself ("<table><tr id=target><td>abc</td><td>def</td></tr><tr id=target><td>ghi</td><td>jkl</td></tr>")assert_equals: innerText expected "abc\tdef" but got "abcdef"
FAILNewline between cells and caption ("<div><table><tr><td>abc<caption>def</caption></table>")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAILTab-separated table cells ("<div><div class='table'><span class='cell'>abc</span>\n<span class='cell'>def</span></div>")assert_equals: innerText expected "abc\tdef" but got "abc\ndef"
PASSNewline-separated table rows ("<div><div class='table'><span class='row'><span class='cell'>abc</span></span>\n<span class='row'><span class='cell'>def</span></span></div>")
FAILNewlines around table ("<div>abc<div class='table'><span class='cell'>def</span></div>ghi")assert_equals: innerText expected "abc\ndef\nghi" but got "abcdefghi"
FAILTab-separated table cells ("<div><div class='itable'><span class='cell'>abc</span>\n<span class='cell'>def</span></div>")assert_equals: innerText expected "abc\tdef" but got "abc\ndef"
PASSNewline-separated table rows ("<div><div class='itable'><span class='row'><span class='cell'>abc</span></span>\n<span class='row'><span class='cell'>def</span></span></div>")
PASSNo newlines around inline-table ("<div>abc<div class='itable'><span class='cell'>def</span></div>ghi")
PASSSingle newline in two-row inline-table ("<div>abc<div class='itable'><span class='row'><span class='cell'>def</span></span>\n<span class='row'><span class='cell'>123</span></span></div>ghi")
PASSdisplay:table-row on the element itself ("<div style='display:table-row'>")
PASSdisplay:table-cell on the element itself ("<div style='display:table-cell'>")
PASSdisplay:table-caption on the element itself ("<div style='display:table-caption'>")
PASS<ol> list items get no special treatment ("<div><ol><li>abc")
PASS<ul> list items get no special treatment ("<div><ul><li>abc")
PASSdisplay:block <script> is rendered ("<div><script style='display:block'>abc")
PASSdisplay:block <style> is rendered ("<div><style style='display:block'>abc")
FAILdisplay:block <noscript> is not rendered (it's not parsed!) ("<div><noscript style='display:block'>abc")assert_equals: innerText expected "" but got "abc"
FAILdisplay:block <template> contents are not rendered (the contents are in a different document) ("<div><template style='display:block'>abc")assert_equals: innerText expected "" but got "abc"
FAIL<br> induces line break ("<div>abc<br>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAIL<br> induces line break even at end of block ("<div>abc<br>")assert_equals: innerText expected "abc\n" but got "abc"
FAIL<br> content ignored ("<div><br class='poke'>")assert_equals: innerText expected "\n" but got "abc"
FAIL<hr> induces line break ("<div>abc<hr>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAIL<hr><hr> induces just one line break ("<div>abc<hr><hr>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAIL<hr><hr><hr> induces just one line break ("<div>abc<hr><hr><hr>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
PASS<hr> content rendered ("<div><hr class='poke'>")
PASScomment ignored ("<div>abc<!--comment-->def")
PASS<br> ("<br>")
PASSempty <p> ("<p>")
PASSempty <div> ("<div>")
FAILunopened <details> ignored ("<div><details><summary>abc</summary>123")assert_equals: innerText expected "abc" but got "abc123"
FAILopened <details> content shown ("<div><details open><summary>abc</summary>123")assert_equals: innerText expected "abc\n123" but got "abc123"
FAILtext-transform is applied ("<div><div style='text-transform:uppercase'>abc")assert_equals: innerText expected "ABC" but got "abc"
FAILtext-transform handles es-zet ("<div><div style='text-transform:uppercase'>Maß")assert_equals: innerText expected "MASS" but got "Maß"
FAILtext-transform handles Turkish casing ("<div><div lang='tr' style='text-transform:uppercase'>i ı")assert_equals: innerText expected "İ I" but got "i ı"
FAILblock-in-inline doesn't add unnecessary newlines ("<div>abc<span>123<div>456</div>789</span>def")assert_equals: innerText expected "abc123\n456\n789def" but got "abc123456789def"
FAILfloats induce a block boundary ("<div>abc<div style='float:left'>123</div>def")assert_equals: innerText expected "abc\n123\ndef" but got "abc123def"
FAILfloats induce a block boundary ("<div>abc<span style='float:left'>123</span>def")assert_equals: innerText expected "abc\n123\ndef" but got "abc123def"
PASSfloat on the element itself ("<div style='float:left'>123")
FAILposition:absolute induces a block boundary ("<div>abc<div style='position:absolute'>123</div>def")assert_equals: innerText expected "abc\n123\ndef" but got "abc123def"
FAILposition:absolute induces a block boundary ("<div>abc<span style='position:absolute'>123</span>def")assert_equals: innerText expected "abc\n123\ndef" but got "abc123def"
PASSposition:absolute on the element itself ("<div style='position:absolute'>123")
FAILposition:relative has no effect ("<div>abc<div style='position:relative'>123</div>def")assert_equals: innerText expected "abc\n123\ndef" but got "abc123def"
PASSposition:relative has no effect ("<div>abc<span style='position:relative'>123</span>def")
PASSoverflow:hidden ignored ("<div style='overflow:hidden'>abc")
PASSoverflow:hidden ignored even with zero width ("<div style='width:0; overflow:hidden'>abc")
PASSoverflow:hidden ignored even with zero height ("<div style='height:0; overflow:hidden'>abc")
PASStext-overflow:ellipsis ignored ("<div style='width:0; overflow:hidden; text-overflow:ellipsis'>abc")
FAILinnerText not supported on SVG elements ("<svg>abc")assert_equals: innerText expected (undefined) undefined but got (string) "abc"
FAILinnerText not supported on MathML elements ("<math>abc")assert_equals: innerText expected (undefined) undefined but got (string) "abc"
PASS<rt> and no <rp> ("<div><ruby>abc<rt>def</rt></ruby>")
FAIL<rp> ("<div><ruby>abc<rp>(</rp><rt>def</rt><rp>)</rp></ruby>")assert_equals: innerText expected "abcdef" but got "abc(def)"
FAILLone <rp> ("<div><rp>abc</rp>")assert_equals: innerText expected "" but got "abc"
FAILvisibility:hidden <rp> ("<div><rp style='visibility:hidden'>abc</rp>")assert_equals: innerText expected "" but got "abc"
FAILdisplay:block <rp> ("<div><rp style='display:block'>abc</rp>def")assert_equals: innerText expected "abc\ndef" but got "abcdef"
FAILdisplay:block <rp> with whitespace ("<div><rp style='display:block'> abc </rp>def")assert_equals: innerText expected "abc\ndef" but got " abc def"
FAIL<rp> in a <select> ("<div><select class='poke-rp'></select>")assert_equals: innerText expected "" but got "abc"
FAILShadow DOM contents ignored ("<div class='shadow'>")assert_equals: innerText expected "" but got "abc"
FAILShadow DOM contents ignored ("<div><div class='shadow'>")assert_equals: innerText expected "" but got "abc"
FAILCSS 'order' property ignored ("<div style='display:flex'><div style='order:1'>1</div><div>2</div></div>")assert_equals: innerText expected "1\n2" but got "12"
FAILFlex items blockified ("<div style='display:flex'><span>1</span><span>2</span></div>")assert_equals: innerText expected "1\n2" but got "12"
FAILCSS 'order' property ignored ("<div style='display:grid'><div style='order:1'>1</div><div>2</div></div>")assert_equals: innerText expected "1\n2" but got "12"
FAILGrid items blockified ("<div style='display:grid'><span>1</span><span>2</span></div>")assert_equals: innerText expected "1\n2" but got "12"

bundle built 2026-07-16T07:16:48.063Z