ios - javascript replaceChild is not showing result in UIWebview -



ios - javascript replaceChild is not showing result in UIWebview -

i trying replace tag in html tag using this

if (tmp.tagname === 'meter') { var newmin = tmp.getattribute('min'); var newmax = tmp.getattribute('max'); var newval = tmp.getattribute('value'); var style = "color:green;background:white"; var newnode = document.createelement('progress'); newnode.setattribute('min', newmin); newnode.setattribute('max', newmax); newnode.setattribute('value', newval); newnode.setattribute('style', style); tmp.parentnode.replacechild(newnode, tmp); }

it replacing tag able see replaced tag in safari debugger in app view tag not rendering. idea?

javascript ios uiwebview

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -