In WebKit innerText, it seems the text of the element is returned, which the user sees is exactly what I need.
Are there policies for Firefox?
For instance:
<div id = '1'> <br> f <div style = 'display: none'> no </div> oo bar </div>
<script>
function test () {return document.getElementById ('1'). innerText}
</script>
Function test will return "\ n foo bar".
The goal is to make an editable text area in which links are available, and where tags are highlighted and where anchor and selection are created on the fly during input.
My approach:
In each keyboard:
- keep cursor position
- cut the text with
innerText - parse links and tags of text returned
innerText
!