+ };
+
+ this.append = function(documentNode) {
+ this._$myNode.append(documentNode._$myNode);
+ };
+
+ this.contents = function() {
+ var toret = [];
+ this._$myNode.contents().each(function() {
+ if(this.nodeType === Node.ELEMENT_NODE)
+ toret.push(new ElementNode(this));
+ });
+ return toret;
+ };
+
+ this.sameNode = function(otherNode) {
+ return this._myNode === otherNode._myNode;