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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -