Element.innerText

Fetch the inside text, with all tags stripped out.

<p>cool <b>api</b> &amp; code dude<p> innerText of that is "cool api & code dude".

This does not match what real innerText does! http://perfectionkills.com/the-poor-misunderstood-innerText/

It is more like textContent.

  1. string innerText [@property getter]
    class Element
    @property const
    @scriptable
    string
    innerText
    ()
  2. string innerText [@property setter]

See Also

visibleText, which is closer to what the real innerText does.

Meta