android - Javascript: explicitly closing tags like <a/> with DOM manipulation -
my android app makes use of webview control html page loaded. experiencing wrong behaviour of functions range.getclientrects() when user selects range surrounding empty anchor element like:
<a id='id' class='class' />
and suspect can happen other tags too.
i said browsers computes element reach end of parent element, p example, when range.getclientrects() called. it's wrong behaviour in app avoid closing empty tags (anchors , other types) if doesn't break rendered layout (it should remain same) javascript dom manipulation after html loaded.
<a id='id' class='class' ></a>
is possible?
Comments
Post a Comment