* Set a tree basic nodes. * @param rootElementTag {String} The root element tag is safety wrapper around a parsed HTML * because the HTML can have multiple root elements which is not supported by the RN.
(rootTag = 'div')
| 61 | * because the HTML can have multiple root elements which is not supported by the RN. |
| 62 | */ |
| 63 | constructor(rootTag = 'div') { |
| 64 | this.rootNode = createElementNode(rootTag); |
| 65 | this.activeNode = this.rootNode; |
| 66 | this.openTag = this.openTag.bind(this); |
| 67 | this.appendText = this.appendText.bind(this); |
| 68 | this.closeTag = this.closeTag.bind(this); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Create new element, add it to active node, and set it as active. |
nothing calls this directly
no test coverage detected