Lines Matching refs:node
312 function isRawContent(node) { argument
313 return 'XMP' === node.tagName;
316 function normalizedHtml(node, out) { argument
317 switch (node.nodeType) {
319 var name = node.tagName.toLowerCase();
321 for (var i = 0; i < node.attributes.length; ++i) {
322 var attr = node.attributes[i];
328 for (var child = node.firstChild; child; child = child.nextSibling) {
331 if (node.firstChild || !/^(?:br|link|img)$/.test(name)) {
336 out.push(node.name.toLowerCase(), '="', attribToHtml(node.value), '"');
339 out.push(textToHtml(node.nodeValue));
345 function getInnerHtml(node) { argument
357 var content = node.innerHTML;
359 if (isRawContent(node)) {
366 for (var child = node.firstChild; child; child = child.nextSibling) {