(html: string, url = '/')
| 24 | * Parses a document string to a Document object. |
| 25 | */ |
| 26 | export function parseDocument(html: string, url = '/') { |
| 27 | let window = domino.createWindow(html, url); |
| 28 | let doc = window.document; |
| 29 | return doc; |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Serializes a document to string. |
no outgoing calls
no test coverage detected
searching dependent graphs…