(element: any)
| 27 | } |
| 28 | |
| 29 | function getAttributeMap(element: any): Map<string, string> { |
| 30 | const res = new Map<string, string>(); |
| 31 | const elAttrs = element.attributes; |
| 32 | for (let i = 0; i < elAttrs.length; i++) { |
| 33 | const attrib = elAttrs.item(i); |
| 34 | res.set(attrib.name, attrib.value); |
| 35 | } |
| 36 | return res; |
| 37 | } |
| 38 | |
| 39 | const _selfClosingTags = ['br', 'hr', 'input']; |
| 40 | export function stringifyElement(el: Element): string { |
no test coverage detected
searching dependent graphs…