(html, doc)
| 4755 | } |
| 4756 | |
| 4757 | function createHTML(html, doc) { |
| 4758 | const targetDoc = doc || document; |
| 4759 | const fragment = targetDoc.createDocumentFragment(); |
| 4760 | if (html === null || html === undefined || html === '') return fragment; |
| 4761 | parseHTMLToFragment(String(html), fragment, targetDoc); |
| 4762 | return fragment; |
| 4763 | } |
| 4764 | let canDirectSetHTML = true; |
| 4765 | let canPolicySetHTML = true; |
| 4766 | let escapeHTMLPolicy; |
no test coverage detected