♻️ Reblog of
Timo Tijhof (krinkle@fosstodon.org
)
Regarding innerText doing style calc, perhaps you covered this in the talk, but I assume textContent doesn't, right?
innerText returns only visible text and so has to know style.display and determine if eg it's "none". If memory serves, it was a non-standard IE feature originally, and might also do things like consider inline vs block and eg insert a new line. #webperf #perfmatters
Ref offset 100:
https://nolanlawson.github.io/css-talk-2022/#100