(attrs)
| 1 | function attrString(attrs) { |
| 2 | const buff = [] |
| 3 | for (let key in attrs) { |
| 4 | buff.push(key + '="' + attrs[key] + '"') |
| 5 | } |
| 6 | if (!buff.length) { |
| 7 | return '' |
| 8 | } |
| 9 | return ' ' + buff.join(' ') |
| 10 | } |
| 11 | |
| 12 | function stringify(buff, doc) { |
| 13 | switch (doc.type) { |
no outgoing calls
no test coverage detected
searching dependent graphs…