You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix insertAdjacentHTML and createContextualFragment not working on non-HTML documents (#307)
* Create helper function `htmlToFragment`
* Fix insertAdjacentHTML not working on XML (and potentially SVG) documents
* Fix createContextualFragment not working on XML (and potentially SVG) documents
* Move insertAdjacent... tests from html to general elements, and cover XML
* Add test for createContextualFragment in SVG documents
* Build
* Improve performance of htmlToFragment, and added JSDoc
* Add test to check insertAdjacentHTML adding multiple elements
* Build
consthtmlDocWithEmptyAttrFromSet=parser.parseFromString(`<div><span style=""/></div>`,'text/html').documentElement;// attribute is in emptyAttributes set is empty
constxmlDocWithEmptyAttrFromSet=parser.parseFromString(`<hierarchy><android.view.View style=""/></hierarchy>`,'text/xml').documentElement;// attribute is in emptyAttributes set is empty (even for XML)
0 commit comments