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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -