(doc, tagName, attributes)
| 169 | * @return {Element} created element |
| 170 | */ |
| 171 | export function createElementWithAttributes(doc, tagName, attributes) { |
| 172 | const element = doc.createElement(tagName); |
| 173 | return addAttributesToElement(element, attributes); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Returns true if node is connected (attached). |
no test coverage detected