(element)
| 169 | return datum; |
| 170 | } |
| 171 | function extractAllElementsData(element) { |
| 172 | var datum = extractElementData(element); |
| 173 | datum.children = []; |
| 174 | var children = d3__namespace.selectAll(element.node().childNodes); |
| 175 | children.each(function () { |
| 176 | var childData = extractAllElementsData(d3__namespace.select(this)); |
| 177 | childData.parent = datum; |
| 178 | datum.children.push(childData); |
| 179 | }); |
| 180 | return datum; |
| 181 | } |
| 182 | function createElement(data) { |
| 183 | if (data.tag == '#text') { |
| 184 | return document.createTextNode(""); |
no test coverage detected