Searched refs:firstChild (Results 1 - 25 of 37) sorted by relevance

12

/yui3/src/event/tests/
H A Dwindow-focus.js12 doc.body.insertBefore(input, doc.body.firstChild);
/yui3/src/test/tests/
H A Dbugs-tests.js24 document.body.appendChild(div.firstChild);
/yui3/build/dom-create/
H A Ddom-create-debug.js17 if (!div.firstChild || div.firstChild.tagName !== tag.toUpperCase()) {
165 while (node.firstChild) {
166 node.removeChild(node.firstChild);
202 return (node.firstChild && node.firstChild.nodeName === 'TBODY');
237 frag.removeChild(frag.firstChild);
/yui3/src/dom/js/
H A Ddom-create.js15 if (!div.firstChild || div.firstChild.tagName !== tag.toUpperCase()) {
193 while (node.firstChild) {
194 node.removeChild(node.firstChild);
250 node = parent.firstChild;
272 return (node.firstChild && node.firstChild.nodeName === 'TBODY');
307 frag.removeChild(frag.firstChild);
H A Dselector-css2.js88 child = root.firstChild;
95 child = child.nextSibling || child.firstChild;
H A Ddom-core.js241 while (node.firstChild) {
242 node.removeChild(node.firstChild);
H A Ddom-screen.js271 body.insertBefore(testNode, body.firstChild);
/yui3/src/node/tests/
H A Dnode-attrs-test.js40 'should return the firstChild': function() {
42 Assert.areEqual(element.firstChild, this._testNode.get('firstChild')._node);
45 'should return the nextSibling of the firstChild': function() {
48 Assert.areEqual(element.firstChild.nextSibling,
49 node.get('firstChild').get('nextSibling')._node);
52 'should return the nodeName of the nextSibling of the firstChild': function() {
55 Assert.areEqual(element.firstChild.nextSibling.nodeName,
56 node.get('firstChild.nextSibling.nodeName'));
H A Dnodelist-test.js72 var firstChild = Y.one('body :first-child'),
74 Y.one('body').insertBefore(node, firstChild);
75 Assert.isFalse(firstChild._node === Y.one('body :first-child')._node);
/yui3/build/editor-bidi/
H A Deditor-bidi-debug.js132 var parent = node, divNode, firstChild;
151 firstChild = node;
156 firstChild.replace(divNode);
157 divNode.prepend(firstChild);
/yui3/build/dom-base/
H A Ddom-base-debug.js311 if (!div.firstChild || div.firstChild.tagName !== tag.toUpperCase()) {
489 while (node.firstChild) {
490 node.removeChild(node.firstChild);
546 node = parent.firstChild;
568 return (node.firstChild && node.firstChild.nodeName === 'TBODY');
603 frag.removeChild(frag.firstChild);
/yui3/src/editor/js/
H A Deditor-bidi.js130 var parent = node, divNode, firstChild;
149 firstChild = node;
154 firstChild.replace(divNode);
155 divNode.prepend(firstChild);
H A Deditor-selection.js56 if (ieNode.firstChild) {
57 ieNode = ieNode.firstChild;
60 if (ieNode.firstChild) {
61 ieNode = ieNode.firstChild;
324 d.replace(d.get('firstChild'));
382 firstChild = Y.one(wrapped[0]), i;
387 firstChild.replace(newChild);
388 newChild.prepend(firstChild);
799 if (node.get('firstChild').test('br')) {
800 node.get('firstChild')
[all...]
/yui3/src/datatype/tests/
H A Dxml-tests.js21 ASSERT.areSame("item", xmldoc.documentElement.firstChild.nodeName, "Incorrect node name.");
/yui3/src/test/js/
H A DTestRunner.js53 * @property firstChild
55 this.firstChild = null;
106 if (this.firstChild === null){
107 this.firstChild = this.lastChild = node;
435 } else if (this._cur.firstChild) {
436 this._cur = this._cur.firstChild;
/yui3/build/editor-selection/
H A Deditor-selection-debug.js58 if (ieNode.firstChild) {
59 ieNode = ieNode.firstChild;
62 if (ieNode.firstChild) {
63 ieNode = ieNode.firstChild;
326 d.replace(d.get('firstChild'));
384 firstChild = Y.one(wrapped[0]), i;
389 firstChild.replace(newChild);
390 newChild.prepend(firstChild);
801 if (node.get('firstChild').test('br')) {
802 node.get('firstChild')
[all...]
/yui3/src/dom/tests/
H A Ddom-core-test.js341 node = root.firstChild,
834 fieldset = el.firstChild,
835 legend = fieldset.firstChild;
887 tbody = el.firstChild,
888 tr = el.firstChild.firstChild,
889 td = tr.firstChild;
963 Assert.areEqual('TD', el.firstChild.tagName);
964 Assert.areEqual('TD', el.firstChild.nextSibling.tagName, 'td 2');
991 Assert.areEqual('OPTION', el.firstChild
[all...]
/yui3/build/dom-core/
H A Ddom-core-debug.js243 while (node.firstChild) {
244 node.removeChild(node.firstChild);
/yui3/build/selector-css2/
H A Dselector-css2-debug.js90 child = root.firstChild;
97 child = child.nextSibling || child.firstChild;
/yui3/src/graphics/js/
H A DCanvasGraphic.js452 while(node.firstChild)
454 child = node.firstChild;
H A DSVGGraphic.js457 while(node.firstChild)
459 child = node.firstChild;
H A DVMLGraphic.js426 while(node.firstChild)
428 child = node.firstChild;
/yui3/src/panel/docs/assets/vendor/prettify/
H A Dprettify-min.js3 for(l=b.firstChild;l;l=l.nextSibling)H(l,f,i);if(b.firstChild||!/^(?:br|link|img)$/.test(o))f.push("</",o,">");break;case 3:case 4:f.push(y(b.nodeValue));break}}function O(b){function f(c){if(c.charAt(0)!=="\\")return c.charCodeAt(0);switch(c.charAt(1)){case "b":return 8;case "t":return 9;case "n":return 10;case "v":return 11;case "f":return 12;case "r":return 13;case "u":case "x":return parseInt(c.substring(2),16)||c.charCodeAt(1);case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":return parseInt(c.substring(1),
31 " "))}d=d}else{d=[];for(a=a.firstChild;a;a=a.nextSibling)H(a,d);d=d.join("")}d=d.replace(/(?:\r\n?|\n)$/,"");m={f:d,e:c,b:p};U(m);if(p=m.a){c=m.b;if("XMP"===c.tagName){d=document.createElement("PRE");for(a=0;a<c.attributes.length;++a){k=c.attributes[a];if(k.specified)if(k.name.toLowerCase()==="class")d.className=k.value;else d.setAttribute(k.name,k.value)}d.innerHTML=p;c.parentNode.replaceChild(d,c)}else c.innerHTML=p}}}}if(q<o.length)setTimeout(f,250);else b&&b()}for(var i=[document.getElementsByTagName("pre"),
/yui3/build/test/
H A Dtest-debug.js832 * @property firstChild
834 this.firstChild = null;
885 if (this.firstChild === null){
886 this.firstChild = this.lastChild = node;
1214 } else if (this._cur.firstChild) {
1215 this._cur = this._cur.firstChild;
/yui3/src/charts/js/
H A DAxis.js1004 while(node.firstChild)
1006 child = node.firstChild;

Completed in 2067 milliseconds

12