Click here to download the Blitz Browser!

WPT

wpt / dom / nodes / Node-textContent.html

Spec: DOM ↗

Runs: Chrome 155.0.8041.0 (wpt@2c385f65e, 2026-09-04) | Firefox 157.0a1 (wpt@2c385f65e, 2026-09-04) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a7825 (wpt@2c385f65e, 2026-09-04) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total81/8181/8181/8181/8181/81NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
For an empty Element, textContent should be the empty stringPASSPASSPASSPASSPASS
For an empty DocumentFragment, textContent should be the empty stringPASSPASSPASSPASSPASS
Element with childrenPASSPASSPASSPASSPASS
Element with descendantsPASSPASSPASSPASSPASS
DocumentFragment with childrenPASSPASSPASSPASSPASS
DocumentFragment with descendantsPASSPASSPASSPASSPASS
For an empty Text, textContent should be the empty stringPASSPASSPASSPASSPASS
For an empty ProcessingInstruction, textContent should be the empty stringPASSPASSPASSPASSPASS
For an empty Comment, textContent should be the empty stringPASSPASSPASSPASSPASS
For a Text with data, textContent should be that dataPASSPASSPASSPASSPASS
For a ProcessingInstruction with data, textContent should be that dataPASSPASSPASSPASSPASS
For a Comment with data, textContent should be that dataPASSPASSPASSPASSPASS
For Documents created by parser, textContent should be nullPASSPASSPASSPASSPASS
For Documents created by createDocument, textContent should be nullPASSPASSPASSPASSPASS
For Documents created by createHTMLDocument, textContent should be nullPASSPASSPASSPASSPASS
For DocumentType created by parser, textContent should be nullPASSPASSPASSPASSPASS
For DocumentType created by script, textContent should be nullPASSPASSPASSPASSPASS
Element without children set to nullPASSPASSPASSPASSPASS
Element with empty text node as child set to nullPASSPASSPASSPASSPASS
Element with children set to nullPASSPASSPASSPASSPASS
Element with descendants set to nullPASSPASSPASSPASSPASS
DocumentFragment without children set to nullPASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to nullPASSPASSPASSPASSPASS
DocumentFragment with children set to nullPASSPASSPASSPASSPASS
DocumentFragment with descendants set to nullPASSPASSPASSPASSPASS
Element without children set to undefinedPASSPASSPASSPASSPASS
Element with empty text node as child set to undefinedPASSPASSPASSPASSPASS
Element with children set to undefinedPASSPASSPASSPASSPASS
Element with descendants set to undefinedPASSPASSPASSPASSPASS
DocumentFragment without children set to undefinedPASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to undefinedPASSPASSPASSPASSPASS
DocumentFragment with children set to undefinedPASSPASSPASSPASSPASS
DocumentFragment with descendants set to undefinedPASSPASSPASSPASSPASS
Element without children set to ""PASSPASSPASSPASSPASS
Element with empty text node as child set to ""PASSPASSPASSPASSPASS
Element with children set to ""PASSPASSPASSPASSPASS
Element with descendants set to ""PASSPASSPASSPASSPASS
DocumentFragment without children set to ""PASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to ""PASSPASSPASSPASSPASS
DocumentFragment with children set to ""PASSPASSPASSPASSPASS
DocumentFragment with descendants set to ""PASSPASSPASSPASSPASS
Element without children set to 42PASSPASSPASSPASSPASS
Element with empty text node as child set to 42PASSPASSPASSPASSPASS
Element with children set to 42PASSPASSPASSPASSPASS
Element with descendants set to 42PASSPASSPASSPASSPASS
DocumentFragment without children set to 42PASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to 42PASSPASSPASSPASSPASS
DocumentFragment with children set to 42PASSPASSPASSPASSPASS
DocumentFragment with descendants set to 42PASSPASSPASSPASSPASS
Element without children set to "abc"PASSPASSPASSPASSPASS
Element with empty text node as child set to "abc"PASSPASSPASSPASSPASS
Element with children set to "abc"PASSPASSPASSPASSPASS
Element with descendants set to "abc"PASSPASSPASSPASSPASS
DocumentFragment without children set to "abc"PASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to "abc"PASSPASSPASSPASSPASS
DocumentFragment with children set to "abc"PASSPASSPASSPASSPASS
DocumentFragment with descendants set to "abc"PASSPASSPASSPASSPASS
Element without children set to "<b>xyz</b>"PASSPASSPASSPASSPASS
Element with empty text node as child set to "<b>xyz</b>"PASSPASSPASSPASSPASS
Element with children set to "<b>xyz</b>"PASSPASSPASSPASSPASS
Element with descendants set to "<b>xyz</b>"PASSPASSPASSPASSPASS
DocumentFragment without children set to "<b>xyz</b>"PASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to "<b>xyz</b>"PASSPASSPASSPASSPASS
DocumentFragment with children set to "<b>xyz</b>"PASSPASSPASSPASSPASS
DocumentFragment with descendants set to "<b>xyz</b>"PASSPASSPASSPASSPASS
Element without children set to "d\0e"PASSPASSPASSPASSPASS
Element with empty text node as child set to "d\0e"PASSPASSPASSPASSPASS
Element with children set to "d\0e"PASSPASSPASSPASSPASS
Element with descendants set to "d\0e"PASSPASSPASSPASSPASS
DocumentFragment without children set to "d\0e"PASSPASSPASSPASSPASS
DocumentFragment with empty text node as child set to "d\0e"PASSPASSPASSPASSPASS
DocumentFragment with children set to "d\0e"PASSPASSPASSPASSPASS
DocumentFragment with descendants set to "d\0e"PASSPASSPASSPASSPASS
For a Text, textContent should set the dataPASSPASSPASSPASSPASS
For a ProcessingInstruction, textContent should set the dataPASSPASSPASSPASSPASS
For a Comment, textContent should set the dataPASSPASSPASSPASSPASS
For Documents created by parser, setting textContent should do nothingPASSPASSPASSPASSPASS
For Documents created by createDocument, setting textContent should do nothingPASSPASSPASSPASSPASS
For Documents created by createHTMLDocument, setting textContent should do nothingPASSPASSPASSPASSPASS
For DocumentType created by parser, setting textContent should do nothingPASSPASSPASSPASSPASS
For DocumentType created by script, setting textContent should do nothingPASSPASSPASSPASSPASS