Insert node as a child of the current node
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 33 def appendChild(node) raise NotImplementedError end
Return a shallow copy of the current node i.e. a node with the same name and attributes but with no parent or child nodes
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 66 def cloneNode raise NotImplementedError end
Return true if the node has children or text, false otherwise
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 71 def hasContent raise NotImplementedError end
Insert data as text in the current node, positioned before the start of node insertBefore or to the end of the node's text.
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 39 def insertText(data, insertBefore=nil) raise NotImplementedError end
Remove node from the children of the current node
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 51 def removeChild(node) raise NotImplementedError end
Move all the children of the current node to newParent. This is needed so that trees that don't store text as nodes move the text in the correct way
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb, line 58 def reparentChildren(newParent) #XXX - should this method be made more general? @childNodes.each { |child| newParent.appendChild(child) } @childNodes = [] end
Generated with the Darkfish Rdoc Generator 2.