master
BaseNode
var BaseNode = function(tagName) { this.tagName = tagName; this.childs = []; this.appendChild = function(node) { this[node.tagName] = node;