See corresponding blog post about innerText

IE8 IE9 IE10 IE11 Edge WebKit/Chrome FF45+
Newlines between paragraphs 1 1 2 2 2 2 2
Newlines between paragraph and non-paragraph 1 1 2 2 2 1 2
Newlines after table caption 0 0 2 2 2 1 1
Newlines after block, non-paragraph elements (e.g. <div>) 1 1 2 2 2 1 1
Includes display:none elements Yes Yes Yes Yes No No No
Includes visibility:hidden elements Yes Yes Yes Yes Yes No No
Includes <select> content Yes Yes Yes Yes Yes No No
Includes <button> content Yes Yes Yes Yes Yes Yes Yes
Includes <canvas>, <video> fallback content Yes Yes Yes Yes Yes No No
Includes <iframe> fallback content No No Yes Yes Yes No No
Includes <script>, <style> content No No Yes Yes No No No
Creates leading space for anonymous inline boxes (including <li>) No No Yes Yes Yes No No
Creates newline around inline, block-styled elements (e.g. <span>) No No Yes Yes Yes Yes Yes
Respects white-space:pre No No Yes Yes Yes Yes Yes
Respects white-space:pre-line No No No No No No Yes
Creates (only) spaces between block, inline-styled elements (e.g. <div>) No No No Yes Yes Yes Yes
Puts tabs between <td> tags No No No No No Yes Yes
Preserves upper/lower -cased text No No No No No Yes Yes

Hello!

Hello to you too.

Secret


visibility:hidden visibility:visible

Triple nested div
Margined div
StuffMore stuff Even more stuff
Data More data ..
? Last cell was empty!
Last two cells empty
 Preformatted 
Also
pre
   formatted
white-space pre
Pre- line
No wrap
Pre- wrap
Float left
Normal div
Float right
Normal div
Float left
Left-cleared div
An
Inline Table
. Line break:
Two line breaks:

Three line breaks:


An
Inline table
with multiple rows
.

You should not see this un-generated content

Is there text before this?

Is there text after this?

text-overflow: ellipsis

Transformed to uppercase

Transformed to lowercase

Transformed to titlecase

  1. Ordered
  2. List
this line has 1 leading and 1 trailing spaces

And here's 4 spaces

And a triple   nbsp's

some more formatting

Table caption
Regular old
data table
Table caption

Table cell

with

paragraphs

Cell 2
Next row

Top right (absolute position)

Bottom left (absolute position)

<unknown> tags

This is text beforea span with display:block....and after.

div w. display:inline
div w. display:inline
div w. table-cell
div w. table-cell
img alt value fallback canvas content
Text without any tags
top level span top level em