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
Post a Comment