A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Standardizing innerText

stuartpb
2015-04-05

See http://perfectionkills.com/the-poor-misunderstood-innerText/ - innerText is a nice property for getting HTMLElement text as presented, the same as you would get when selecting the element. Its behavior should be standardized (and implemented in Firefox).

Previous standardization attempts (as linked):

annevk
2015-04-12

To do this right, you would first have to standardize selection. There have been some attempts, but not successes.

stuartpb
2015-07-27

I think, more than / before specifying selection behavior, it’s crucial to specify plain-text style normalization behavior, which would then be used as part of selection behavior (which also entails things like element boundaries and such, which, while important, don’t affect the behavior of innerText).

cvrebert
2015-08-02

See also: https://github.com/whatwg/compat/issues/5

roc
2015-10-09

I have created a proposed spec plus testsuite here: https://github.com/rocallahan/innerText-spec