In both of the following examples, speechTextString
ends up including text from the entire document, including text outside of the BODY tag.
Example 1:
r = document.body;
speechTextString = r.innerText;
Example 2:
r = document.getElementsByTagName("BODY").item(0);
speechTextString = r.innerText;
Is it possible to get the root HTML tag, not just the body element?