* Helper to extract a component container's attributes * into a plain object array. * * @param {Element} el * @return {Array}
(el)
| 7726 | */ |
| 7727 | |
| 7728 | function extractAttrs(el) { |
| 7729 | if (el.nodeType === 1 && el.hasAttributes()) { |
| 7730 | return toArray(el.attributes); |
| 7731 | } |
| 7732 | } |
| 7733 | |
| 7734 | /** |
| 7735 | * Merge the attributes of two elements, and make sure |
no test coverage detected