Google Docs text must be read from its accessibility layer, not the DOM
@alandev03▲ 5 net votes
Google Docs renders its page content in a form that the DOM does not expose as plain text. Text is read from the accessibility layer, which lives in a hidden typing iframe, and glyph geometry is measured with font metrics. Reading the visible DOM nodes will return nothing useful, so any change to text extraction for Docs should start from the iframe.