mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-21 08:01:00 +00:00
62 lines
93 KiB
JSON
62 lines
93 KiB
JSON
{"tool_tip_prefix":"<style type=\"text\/css\" media=\"screen\">\nbody {\n background: transparent;\n\/* opacity: 0.9;*\/\n}\nhtml,body,table{font-size:10px; font-family: \"Lucida Grande\", \"Trebuchet MS\", Verdana, sans-serif;}\ntable{-webkit-border-radius:1ex;background-color:#fff;border:2px solid #eee;width:auto;}\ntd.declaration{width:15em;}\ntd.comp{-webkit-border-radius:1ex;}\n\n\/*COMPATIBILITY TABLES*\/\ntable.compatibility{line-height:140%;border-spacing:0.5em;position:relative;}\ntable.compatibility caption{border-top:1px dotted #9198C1;padding:10px 0;text-align:left;}\ntable.compatibility caption select{margin-left:5px;margin-right:7px;border:1px dotted #9198C1;}\nwbr:after{content:\"\u000200B\"}\ntr{width:100%;}\ntable.compatibility ul,table.compatibility ol{border:none;margin-bottom:0;}\ntable.compatibility td{vertical-align:top;}\ncol.IE{width:3em;}\ncol.FF{width:4em;}\ncol.Saf{width:4em;}\ncol.Op{width:4em;}\ncol.Rest{width:8em;}\ntr.compheader{background-color:#F2F3EF;}\ntr.compheader th{font-weight:normal;font-size:90%;color:#666666;}\ntr.compheader th:first-child{text-align:right;padding:1em;}\ntr.compheader:last-child th{border:none;}\ntd.header{background-color:#F2F3EF;padding:0.3em;}\ntd.header h3,td.header h4{margin-top:0.5em;text-align:center;}\ntd.declaration{background-color:#F2F3EF;text-align:right;padding-right:10px;color:#666666;}\ntd.declaration a{text-decoration:none;}\ndiv.name{font-weight:bold;margin-bottom:1em;margin-top:1em;}\ntd.comp{font-family:verdana,sans-serif;font-size:95%;text-transform:lowercase;text-align:center;height:3em;vertical-align:middle !important;}\ntable.keepCaps td.comp{text-transform:none;}\ntd.yes{background-color:#00882D;color:#ffffff;text-shadow:0 1px 1px #003211;}\ntd.almost{background-color:#40A662;color:#ffffff;text-shadow:0 1px 1px #297D47;}\ntd.incomplete{color:#00882D;border:1px solid #00882D;}\ntd.alternative{color:#666666;border:1px solid #666666;}\ntd.untestable{color:#006699;}\ntd.minimal{color:#CB000F;}\ntd.incorrect{color:#CB000F;border:1px solid #CB000F;}\ntd.inappropriate{background-color:#EFB2B7;text-shadow:0 1px 1px #fff;}\ntd.toomany{background-color:#CCE7D5;text-shadow:0 1px 1px #fff;}\ntd.buggy{background-color:#DA4C57;color:#ffffff;text-shadow:0 1px 1px #81272C;}\ntd.severebug{background-color:#82000A;color:#ffffff;text-shadow:0 1px 1px #410005;}\ntd.no{background-color:#CB000F;color:#ffffff;text-shadow:0 1px 1px #410301;}\ntd.crash{background-color:#535353;font-weight:bold;text-transform:uppercase;color:#ffffff;text-shadow:0 1px 1px #333;}\nb.warning{display:block;color:#F2F3EF;padding:0.5em;margin-right:-10px;margin-top:0.5em;background-color:#999999;text-shadow:0 1px 1px #666;}\ntd pre{padding:0;}\ntd pre + p{margin-top:2px;}\ntd th,td td{padding:1px !important;vertical-align:top;color:#666666;}\ntd th{text-align:left !important;}\n\ncite {\n -webkit-transition: right 1s ease-out, opacity 1s ease-out;\n position: relative;\n opacity: 0;\n right: 50%;\n \n display: block;\n float: right;\n -webkit-border-radius: 1ex;\n margin: 1ex auto 0;\n text-align: center;\n background: #111;\n color: #eee;\n line-height: 2em;\n padding: 0 1em;\n text-shadow: 0 1px 1px #000;\n border: 1px solid #222;\n}\n<\/style>\n<script>\nwindow.addEventListener('load',function(){\n \n var c = document.getElementsByTagName('cite')[0];\n c.style.right = '0px';\n c.style.opacity = '1';\n \n},false);\n<\/script>\n","suggestions":[
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createElement()<\/div>\n\t\tCreate a new element\n\t\t<br \/><br \/><a href=\"tests\/basics.html#createElement()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\">\n\t<pre>\nvar x = document.createElement('P')<\/pre>\n\tCreate a new HTML element node <code><P><\/code> and temporarily place it in <code>x<\/code>,\n\twhich is later inserted into the document.\n\t<ul>\n\t<li>IE also supports <code>('<P>')<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM createElement()","match":"createElement","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createTextNode()<\/div>\n\t\tCreate a new text node\n\t\t<br \/><br \/><a href=\"tests\/basics.html#createTextNode()\">Test page<\/a>\n\t<\/td>\n\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nvar x = document.createTextNode('text')<\/pre>\n\t<p>Create a text node with content <code>text<\/code> and temporarily place it in <code>x<\/code>,\n\twhich is later inserted into the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM createTextNode()","match":"createTextNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getElementById()<\/div>\n\t\tGet the element with this ID\n\t\t<br \/><br \/><a href=\"tests\/basics.html#getElementById()\">Test page<\/a>\n\t\t<b class=\"warning\">Lower case '<span style=\"text-transform: lowercase\">d<\/span>'!!<\/b>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"3\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nvar x = document.getElementById('test')<\/pre>\n\t<p>Take the element with <code>id=\"test\"<\/code> (wherever it is in the document) and put it in <code>x<\/code>.<\/p>\n\t<p>If there is more than one element with <code>id=\"test\"<\/code>, the method selects the first in the document. All\n\tothers are ignored.<\/p>\n\t<ul>\n\t<li>IE5-7 and Opera 9.26 also return the element with <code>name=\"test\"<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getElementById()","match":"getElementById","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getElementsByClassName()<\/div>\n\t\tGet a nodeList of the elements with this class.\n\t\t<br \/><br \/><a href=\"tests\/basics.html#getElementsByClassName\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>document.getElementsByClassName('test')\ndocument.getElementsByClassName('test test2')<\/pre>\n\t<p>The first expression returns a nodeList with all elements that have a <code>class<\/code> value that contains \"test\".\n\tThe second one returns a nodeList will all elements that have a <code>class<\/code> value that contains both\n\t\"test\" and \"test2\" (in any order).<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getElementsByClassName()","match":"getElementsByClassName","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getElements<wbr>ByTagName()<\/wbr><\/div>\n\t\tGet all tags of this type\n\t\t<br \/><br \/><a href=\"tests\/basics.html#getElementsByTagName()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nvar x = document.getElementsByTagName('P')<\/pre>\n\t<p>Make <code>x<\/code> into a nodeList of all P's in the document,\n\tso <code>x[1]<\/code> is the second P etc.<\/p>\n\t<pre>\nvar x = y.getElementsByTagName('P')<\/pre>\n\t<p>Gets all paragraphs that are descendants of node <code>y<\/code>.<\/p>\n\t<ul>\n\t\t<li>The <code>*<\/code> argument, which ought to select all elements in the document,\n\t\tdoesn't work in IE 5.5.<\/li>\n\t\t<li>Custom tags are not returned in Konqueror.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getElementsByTagName()","match":"getElementsByTagName","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">querySelectorAll()<\/div>\n\t\tGet a nodeList of elements by CSS selector\n\t\t<br \/><br \/><a href=\"tests\/basics.html#querySelectorAll\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>document.querySelectorAll('.testClass')<\/pre>\n\t<p>Returns a nodeList with all elements that have a <code>class<\/code> value that contains \"testClass\".\n\tEssentially, this method allows you to use CSS syntax to retrieve elements.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM querySelectorAll()","match":"querySelectorAll","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">nodeName<\/div>\n\t\tThe name of the node\n\t\t<br \/><br \/><a href=\"tests\/aboutnodes.html#nodeName\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nx.nodeName<\/pre>\n\t<p>The name of node <code>x<\/code>. The correct names are:<\/p>\n\n\t<table>\n\t\t<tr>\n\t\t\t<th>Element<\/th>\n\t\t\t<th>Attribute<\/th>\n\t\t\t<th>Text<\/th>\n\t\t\t<th>Comments<\/th>\n\t\t\t<th>Document<\/th>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td>the UPPER CASE tag name<\/td>\n\t\t\t<td>the attribute name<\/td>\n\t\t\t<td><code>#text<\/code><\/td>\n\t\t\t<td><code>#comment<\/code><\/td>\n\t\t\t<td><code>#document<\/code><\/td>\n\t\t<\/tr>\n\t<\/table>\n\n\n\t<ul>\n\t\t<li>IE 5.5 doesn't support a <code>nodeName<\/code> for attributes and the document.<\/li>\n\t\t<li>IE 5.5 reports the <code>nodeName<\/code> of a comment as <code>!<\/code>.<\/li>\n\t\t<li>Konqueror doesn't see comment nodes.<\/li>\n\t<\/ul>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM nodeName","match":"nodeName","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">nodeType<\/div>\n\t\tThe type of the node\n\t\t<br \/><br \/><a href=\"tests\/aboutnodes.html#nodeType\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nx.nodeType<\/pre>\n\t<p>The type of node <code>x<\/code>. The correct types are:<\/p>\n\n\t<table>\n\t\t<tr>\n\t\t\t<th>Element<\/th>\n\t\t\t<th>Attribute<\/th>\n\t\t\t<th>Text<\/th>\n\t\t\t<th>Comments<\/th>\n\t\t\t<th>Document<\/th>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td>1<\/td>\n\t\t\t<td>2<\/td>\n\t\t\t<td>3<\/td>\n\t\t\t<td>8<\/td>\n\t\t\t<td>9<\/td>\n\t\t<\/tr>\n\t<\/table>\n\n\t<ul>\n\t\t<li>IE 5.5: attributes and document not defined; comment has nodeType 1<\/li>\n\t\t<li>Konqueror doesn't see comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM nodeType","match":"nodeType","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">nodeValue<\/div>\n\t\tThe value of the node, if any. Read\/write\n\t\t<br \/><br \/><a href=\"tests\/aboutnodes.html#nodeValue\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>\nx.nodeValue<\/pre>\n\t<p>Get the value of node <code>x<\/code><\/p>\n<pre>x.nodeValue = 'Test'<\/pre>\n\t<p>Set the value of node <code>x<\/code><\/p>\n\t<table>\n\t\t<tr>\n\t\t\t<th>Element<\/th>\n\t\t\t<th>Attribute<\/th>\n\t\t\t<th>Text<\/th>\n\t\t\t<th>Comments<\/th>\n\t\t\t<th>Document<\/th>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td>n\/a<\/td>\n\t\t\t<td>Value of attribute<\/td>\n\t\t\t<td>Content of text node<\/td>\n\t\t\t<td>Content of comment node<\/td>\n\t\t\t<td>n\/a<\/td>\n\t\t<\/tr>\n\t<\/table>\n\n\t<ul>\n\t\t<li>IE 5.5 doesn't support <code>nodeValue<\/code> for attributes<\/li>\n\t\t<li>Konqueror doesn't see comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM nodeValue","match":"nodeValue","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">tagName<\/div>\n\t\tThe tag name of an element node\n\t\t<br \/><br \/><a href=\"tests\/aboutnodes.html#tagName\">Test page<\/a>\n\t\t<b class=\"warning\">Don't use<\/b>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"4\">Almost<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.tagName<\/pre>\n\t<p>Get the tag name of node <code>x<\/code>. Correct values are:<\/p>\n\t<table>\n\t\t<tr>\n\t\t\t<th>Element<\/th>\n\t\t\t<th>Attribute<\/th>\n\t\t\t<th>Text<\/th>\n\t\t\t<th>Comments<\/th>\n\t\t\t<th>Document<\/th>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td>the UPPER CASE tag name<\/td>\n\t\t\t<td>n\/a<\/td>\n\t\t\t<td>n\/a<\/td>\n\t\t\t<td>n\/a<\/td>\n\t\t\t<td>n\/a<\/td>\n\t\t<\/tr>\n\t<\/table>\n\n\t<p>My advice is not to use <code>tagName<\/code> at all.<br \/>\n\t<code>nodeName<\/code> contains all functionalities of <code>tagName<\/code>,\n\tplus a few more. Therefore <code>nodeName<\/code> is always the better choice.<\/p>\n\n\t<ul>\n\t\t<li>In IE (all versions) the <code>tagName<\/code> of a comment node is <code>!<\/code><\/li>\n\t<\/ul>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM tagName","match":"tagName","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">childNodes[]<\/div>\n\t\tAn array with all child nodes of the node\n\t\t<br \/><br \/><a href=\"tests\/children.html#childNodes[]\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.childNodes[1]<\/pre>\n\t<p>Get the second child node of node <code>x<\/code>.<\/p>\n\t<p>The <code>childNodes<\/code> nodeList consists of all child nodes of the element, including\n\t(empty) text nodes and comment nodes.<\/p>\n\n\t<ul>\n\t\t<li>IE does not count empty text nodes. Since this is the desired behaviour as far\n\t\tas I'm concerned, it still gets a Yes.<\/li>\n\t\t<li>Konqueror ignores comment nodes.<\/li>\n\t<\/ul>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"DOM childNodes[]","match":"childNodes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">children[]<\/div>\n\t\tAn array with all child element nodes of the node\n\t\t<br \/><br \/><a href=\"tests\/children.html#children[]\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"4\">Almost<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.children[1]<\/pre>\n\t<p>Get the second element child node of node <code>x<\/code>.<\/p>\n\t<p>Where <code>childNodes<\/code> holds all child nodes, <code>children<\/code> only holds those\n\tthat are element nodes (HTML tags).<\/p>\n\t<ul>\n\t\t<li>IE incorrectly counts comment nodes, too.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"[${1:}]$0","tool_tip_format":"html","display":"DOM children[]","match":"children","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">firstChild<\/div>\n\t\tThe first child node of the node\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#firstChild\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.firstChild<\/pre>\n\t<p>Get the first child node of node <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>Konqueror ignores comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM firstChild","match":"firstChild","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">hasChildNodes()<\/div>\n\t\tCheck if the node has child nodes\n\t\t<br \/><br \/><a href=\"tests\/children.html#hasChildNodes()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.hasChildNodes()<\/pre>\n\t<p>Returns <code>true<\/code> when node <code>x<\/code> has child nodes; <code>false<\/code>\n\twhen it hasn't.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM hasChildNodes()","match":"hasChildNodes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">lastChild<\/div>\n\t\tThe last child node of the node\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#lastChild\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.lastChild<\/pre>\n\t<p>Get the last child of node <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>Konqueror ignores comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM lastChild","match":"lastChild","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">nextSibling<\/div>\n\t\tThe next sibling node of the node\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#nextSibling\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.nextSibling<\/pre>\n\t<p>Get the next child of the parent of <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>Konqueror ignores comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM nextSibling","match":"nextSibling","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">parentNode<\/div>\n\t\tThe parent node of the node\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#parentNode\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.parentNode<\/pre>\n\t<p>Get the parent node of <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM parentNode","match":"parentNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">previousSibling<\/div>\n\t\tThe previous sibling node of the node\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#previousSibling\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.previousSibling<\/pre>\n\t<p>Get the previous child of the parent of <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>Konqueror ignores comment nodes.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM previousSibling","match":"previousSibling","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">sourceIndex<\/div>\n\t\tThe index number of the node in the page source\n\t\t<br \/><br \/><a href=\"tests\/nodeTree.html#sourceIndex\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp incorrect\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.sourceIndex<\/pre>\n\t<p>Get the <code>sourceIndex<\/code> of element <code>x<\/code>. This\n\tis also the index number for the element in the\n\t<code>document.getElementsByTagName('*')<\/code> array.<\/p>\n\t<ul>\n\t\t<li>Opera 9.26 returns the wrong <code>sourceIndex<\/code> in my test.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM sourceIndex","match":"sourceIndex","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">appendChild()<\/div>\n\t\tAppend a child node as the last node to an element\n\t\t<br \/><br \/><a href=\"tests\/nodeManipulation.html#appendChild()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.appendChild(y)<\/pre>\n\t<p>Make node <code>y<\/code> the last child of node <code>x<\/code>.<\/p>\n\t<p>If you append a node that's somewhere else in the document, it moves to the new position.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM appendChild()","match":"appendChild","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">cloneNode()<\/div>\n\t\tClone a node\n\t\t<br \/><br \/><a href=\"tests\/nodeManipulation.html#cloneNode()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x = y.cloneNode(true | false)<\/pre>\n\t<p>Make node <code>x<\/code> a copy of node <code>y<\/code>. If the argument is <code>true<\/code>, the entire tree below <code>y<\/code>\n\tis copied, if it's <code>false<\/code> only the root node <code>y<\/code> is copied.<\/p>\n\t<p>Later you insert the clone into the document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM cloneNode()","match":"cloneNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">insertBefore()<\/div>\n\t\tInsert a node into the child nodes of an element\n\t\t<br \/><br \/><a href=\"tests\/nodeManipulation.html#insertBefore()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp buggy\">Buggy<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.insertBefore(y,z)<\/pre>\n\t<p>Insert node <code>y<\/code> as a child of node <code>x<\/code> just before node <code>z<\/code>.<\/p>\n\t<ul>\n\t\t<li>IE8b2 inserts the element correctly, but the change only shows when you click on element <code>z<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM insertBefore()","match":"insertBefore","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">removeChild()<\/div>\n\t\tRemove a child node from an element\n\t\t<br \/><br \/><a href=\"tests\/nodeManipulation.html#removeChild()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.removeChild(y)<\/pre>\n\t<p>Remove child <code>y<\/code> of node <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM removeChild()","match":"removeChild","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">replaceChild()<\/div>\n\t\tReplace a child node of an element by another child node\n\t\t<br \/><br \/><a href=\"tests\/nodeManipulation.html#replaceChild()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.replaceChild(y,z)<\/pre>\n\t<p>Replace node <code>z<\/code>, a child of node <code>x<\/code>, by node <code>y<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM replaceChild()","match":"replaceChild","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">appendData()<\/div>\n\t\tAppend data to a text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#appendData()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.appendData(' some extra text')<\/pre>\n\t<p>Appends the string <code> some extra text<\/code> to x, which must be a text node.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM appendData()","match":"appendData","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">data<\/div>\n\t\tThe content of a text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#data\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.data<\/pre>\n\t<p>The content of <code>x<\/code>, which must be a text node. The same as <code>x.nodeValue<\/code>.<\/p>\n\t<p>Can also be set:<\/p><pre>x.data = 'The new text'<\/pre>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM data","match":"data","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">deleteData()<\/div>\n\t\tDelete text from a text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#deleteData()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.deleteData(4,3)<\/pre>\n\t<p>Delete some data from <code>x<\/code>, which must be a text node, starting at the fifth character and\n\tdeleting three characters. Second argument is required.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM deleteData()","match":"deleteData","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">insertData()<\/div>\n\t\tInsert text into a text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#insertData()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.insertData(4,' and now for some extra text ')<\/pre>\n\t<p>Insert the string <code>and now for some extra text<\/code> after the fourth character\n\tinto <code>x<\/code>, which must be a text node.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM insertData()","match":"insertData","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">replaceData()<\/div>\n\t\tReplace text in a text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#replaceData()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.replaceData(4,3,' and for some new text ')<\/pre>\n\t<p>Replace three characters, beginning at the fifth one, of node <code>x<\/code>, which must be a text node,\n\tby the string <code>and for some new text<\/code>.<\/p>\n\t<\/td><\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM replaceData()","match":"replaceData","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">substringData()<\/div>\n\t\tTake a substring of the text in the text node\n\t\t<br \/><br \/><a href=\"tests\/data.html#substringData()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.substringData(4,3)<\/pre>\n\t<p>Takes a substring of <code>x<\/code>, which must be a text node, starting at the fifth character and with a length of three\n\tcharacters. Thus it's the same as the old\n\t<a href=\"..\/js\/strings.html#substr\">substr() method<\/a> of strings.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM substringData()","match":"substringData","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">attributes[index]<\/div>\n\t\tAn array with the attributes of a node, accessed by index number, in the order they're\n\t\tdefined in the source code\n\t\t<br \/><br \/><a href=\"tests\/attributesArray.html#attributes[index]\">Test page<\/a>\n\t<b class=\"warning\">Do not use<\/b>\n\tUse <code>getAttribute()<\/code> instead\n\t<\/td>\n\t<td class=\"comp alternative\" colspan=\"3\">Alter<wbr>native<\/wbr><\/td>\n\t<td class=\"comp incorrect\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp incorrect\" colspan=\"2\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.attributes[1]<\/pre>\n\t<p>This array consists of all defined attributes <em>in the order they’re defined in the HTML<\/em>.\n\tIn IE5-7 it consists of all\n\tattributes that can <em>possibly<\/em> be defined on the node (84 all in all).<\/p>\n\t<p>Do yourself a favour and don't use the indexed <code>attributes<\/code> array.<\/p>\n\n\t<ul>\n\t\t<li>Safari, Opera, Konqueror take the second attribute that's defined on node\n\t\t<code>x<\/code> (align in the test).<\/li>\n\t\t<li>Firefox and IE8 try to do the same, but the order of attributes is off (worse in FF than in IE).<\/li>\n\t\t<li>IE5-7 takes the second <em>possible<\/em> attribute of node <code>x<\/code> (dataFld in the\n\t\ttest), whether it's defined or not.<\/li>\n\t\t<li>IE 5.5 initially gives the value of the attribute; not the attribute object.<\/li>\n\t\t<li>In IE8b2 the <code>attributes<\/code> array doesn't have a <code>length<\/code>.<\/li>\n\t<\/ul>\n\n<\/td><\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"[${1:index}]$0","tool_tip_format":"html","display":"DOM attributes[index]","match":"attributes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">attributes[key]<\/div>\n\t\tAn array with the attributes of a node, accessed by attribute name\n\t\t<br \/><br \/><a href=\"tests\/attributesArray.html#attributes[key]\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incorrect\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.attributes['align']<\/pre>\n\t<p>Get the align attribute object of node <code>x<\/code>. If the node has no align attribute, it\n\treturns <code>undefined<\/code> (except in IE, where it returns an attribute object that has no value.)<\/p>\n\n\t<p>After years in the wilderness <code>attribute[key]<\/code> is slowly approaching a workable situation.\n\tI used to advice you not to use it; but by now you can try it if you like.<\/p>\n\n\t<ul>\n\t\t<li>IE5-7 doesn't return the value of a <code>style<\/code> attribute.<\/li>\n\t\t<li>IE 5.5 doesn't return custom attributes, and initially gives the attribute value instead\n\t\tof an attribute object.<\/li>\n\t<\/ul>\n\n<\/td><\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"[${1:key}]$0","tool_tip_format":"html","display":"DOM attributes[key]","match":"attributes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createAttribute() and setAttributeNode()<\/div>\n\t\tCreate a new attribute node and append it to an element node.\n\t\t<br \/><br \/><a href=\"tests\/attributesNodes.html#createAttribute%20and%20setAttributeNode\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp untestable\">Untest<wbr>able<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\">\n<pre>\nz = document.createAttribute('title');\nz.value = 'Test title';\nx.setAttributeNode(z)\n<\/pre>\n<p>This creates a title attribute with a value and sets it on node <code>x<\/code>.<\/p>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM createAttribute()","match":"createAttribute","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createAttribute() and setAttributeNode()<\/div>\n\t\tCreate a new attribute node and append it to an element node.\n\t\t<br \/><br \/><a href=\"tests\/attributesNodes.html#createAttribute%20and%20setAttributeNode\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp untestable\">Untest<wbr>able<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\">\n<pre>\nz = document.createAttribute('title');\nz.value = 'Test title';\nx.setAttributeNode(z)\n<\/pre>\n<p>This creates a title attribute with a value and sets it on node <code>x<\/code>.<\/p>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM setAttributeNode()","match":"setAttributeNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getAttribute()<\/div>\n\t\tGet the value of an attribute\n\t\t<br \/><br \/><a href=\"tests\/attributesBasics.html#getAttribute()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"3\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.getAttribute('align')<\/pre>\n\t<p>Gives the value of the align attribute of node <code>x<\/code>.<\/p>\n\n\n\t<ul>\n\t\t<li>In IE5-7, accessing the style attribute gives an object, and accessing the onclick\n\t\tattribute gives an anonymous function wrapped around the actual content.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getAttribute()","match":"getAttribute","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getAttributeNode()<\/div>\n\t\tGet an attribute node\n\t\t<br \/><br \/><a href=\"tests\/attributesNodes.html#getAttributeNode()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.getAttributeNode('align')<\/pre>\n\t<p>Get the attribute object <code>align<\/code> of node <code>x<\/code>. This is an object, not a value.<\/p>\n\t<ul>\n\t\t<li>IE 6\/7 don't allow you to access the value of <code>x.getAttributeNode('style')<\/code>.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getAttributeNode()","match":"getAttributeNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t<div class=\"name\">hasAttribute()<\/div>\n\tCheck if a node has a certain attribute\n\t<br \/><br \/><a href=\"tests\/attributesMisc.html#hasAttribute()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.hasAttribute('align')<\/pre>\n\t<p>Returns <code>true<\/code> when node <code>x<\/code> has an align attribute, <code>false<\/code> when it hasn't.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM hasAttribute()","match":"hasAttribute","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">hasAttributes()<\/div>\n\t\tCheck if a node has attributes\n\t<br \/><br \/><a href=\"tests\/attributesMisc.html#hasAttributes()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.hasAttributes()<\/pre>\n\t<p>Returns <code>true<\/code> when node <code>x<\/code> has attributes, <code>false<\/code> when it hasn't.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM hasAttributes()","match":"hasAttributes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">name<\/div>\n\t\tThe name of an attribute\n\t\t<br \/><br \/><a href=\"tests\/attributesNameValue.html#name%20and%20value\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.name<\/pre>\n\t<p>The name of attribute node <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM name","match":"name","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">removeAttribute()<\/div>\n\t\tRemove an attribute node\n\t\t<br \/><br \/><a href=\"tests\/attributesBasics.html#removeAttribute()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp almost\" colspan=\"3\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.removeAttribute('align')<\/pre>\n\t<p>Remove the <code>align<\/code> attribute from node <code>x<\/code>.<\/p>\n\n\t<ul>\n\t\t<li>IE5-7 and Opera don't remove event handlers.<\/li>\n\t\t<li>Konqueror doesn't remove the align attribute.<\/li>\n\t<\/ul>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM removeAttribute()","match":"removeAttribute","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">remove<wbr>AttributeNode()<\/wbr><\/div>\n\t\tRemove an attribute node\n\t\t<br \/><br \/><a href=\"tests\/attributesNodes.html#removeAttributeNode()\">Test page<\/a>\n\t<\/td><td class=\"comp no\">No<\/td>\n\t<td class=\"comp minimal\">Minimal<\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n\t<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.removeAttributeNode(x.attributes['align'])\nx.removeAttributeNode(x.attributes[1])\nx.removeAttributeNode(x.getAttributeNode('align'))<\/pre>\n\n\t<p>Removes the attribute node. There is little difference with <code>removeAttribute()<\/code>,\n\texcept in the method argument.<\/p>\n\n\t<ul>\n\t\t<li>IE 6 does't remove anything, but doesn't give an error message either.<\/li>\n\t\t<li>IE 7 doesn't remove styles and event handlers.<\/li>\n\t\t<li>Opera doesn't remove event handlers.<\/li>\n\t\t<li>Konqueror doesn't remove the align attribute.<\/li>\n\t<\/ul>\n\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM removeAttributeNode()","match":"removeAttributeNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">setAttribute()<\/div>\n\t\tSet the value of an attribute\n\t\t<br \/><br \/><a href=\"tests\/attributesBasics.html#setAttribute()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\" colspan=\"3\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp almost\">Almost<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.setAttribute('align','right')<\/pre>\n\t<p>Set the align attribute of node <code>x<\/code> to <code>right<\/code>. The name and value are both strings.<\/p>\n\t<ul>\n\t\t<li>IE5-7 doesn't set styles and removes events when you try to set them.<\/li>\n\t\t<li>IE8b2 changes the style attribute, but the change only shows after you run another test..<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM setAttribute()","match":"setAttribute","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\">\n\t\t<div class=\"name\">setAttributeNode()<\/div>\n\t<\/td>\n\t<td colspan=\"12\">See <code>createAttribute()<\/code>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM setAttributeNode()","match":"setAttributeNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">value<\/div>\n\t\tThe value of an attribute\n\t\t<br \/><br \/><a href=\"tests\/attributesNameValue.html#name%20and%20value\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp almost\" colspan=\"2\">Almost<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.value<\/pre>\n\t<p>The value of attribute <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>IE6-7 gives <code>null<\/code> for style values.<\/li>\n\t<\/ul>\n<\/td><\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM value","match":"value","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">contains()<\/div>\n\t\tCheck whether an element contains another element\n\t<br \/><br \/><a href=\"tests\/basics.html#contains()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.contains(y)<\/pre>\n\t<p>If node <code>y<\/code> is a descendant of node <code>x<\/code>, the method returns <code>true<\/code>,\n\telse <code>false<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM contains()","match":"contains","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createDocument()<\/div>\n\t\tCreate a new document\n\t<br \/><br \/><a href=\"tests\/implementation.html#createDocument()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x = document.implementation.createDocument('','',null)<\/pre>\n\t<p>Creates a new document. The the <a href=\"importxml.html\">Import XML<\/a> script gives\n\tan example of what to do with such a document.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM createDocument()","match":"createDocument","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">createDocument<wbr>Fragment()<\/wbr><\/div>\n\t\tCreate a document fragment\n\t\t<br \/><br \/><a href=\"tests\/fragment.html#createDocumentFragment()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x = document.createDocumentFragment();\nx.[fill with nodes];\ndocument.[somewhere].appendChild(x);<\/pre>\n\t<p>Create a fragment, add a lot of nodes to it, and then insert it into the document. Note that the fragment\n\titself is not inserted, only its child nodes.<\/p>\n\t<p>You may not move a node from the existing document to the document fragment. (Cloning is allowed,\n\thowever.)<\/p>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM createDocumentFragment()","match":"createDocumentFragment","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">documentElement<\/div>\n\t\tThe HTML tag\n\t\t<br \/><br \/><a href=\"tests\/document.html#documentElement\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>document.documentElement<\/pre>\n\t<p>Represents the root element of the XML document. In any HTML document, the\n\t<code><html><\/code> element is of course the root element.<\/p>\n\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM documentElement","match":"documentElement","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">getElements<wbr>ByName()<\/wbr><\/div>\n\t\tGet elements by their name attribute\n\t<br \/><br \/><a href=\"tests\/getelementsbyname.html#getElementsByName()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incorrect\" colspan=\"3\">Incor<wbr>rect and incom<\/wbr><wbr>plete<\/wbr><\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp incorrect\" colspan=\"2\">Incor<wbr>rect<\/wbr><\/td>\n\t<td class=\"comp incomplete\">Incom<wbr>plete<\/wbr><\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>var x = document.getElementsByName('test')<\/pre>\n\t<p>Create a nodeList with all elements that have <code>name=\"test\"<\/code>. It should ignore\n\telements with <code>id=\"test\"<\/code>\n\n\t<p>On my test page the\n\t<code><p><\/code>,\n\t<code><input><\/code>,\n\t<code><img><\/code> and\n\t<code><ppk><\/code> tags have this name, while there's also a paragraph with <code>id=\"test\"<\/code>.\n\tIdeally, all browsers should get the first four elements and ignore the fifth one.<\/p>\n\n\n\t<ul>\n\t\t<li>IE5-7 and Opera 9.26 ignore the <code><p><\/code> and <code><ppk><\/code> tags with <code>name=\"test\"<\/code>,\n\t\tbut counts the <code><p><\/code> with <code>id=\"test\"<\/code><\/li>\n\t\t<li>IE8b2 ignores the <code><ppk><\/code> tag.<\/li>\n\t\t<li>Opera counts the <code><p><\/code> with <code>id=\"test\"<\/code><\/li>\n\t\t<li>Konqueror ignores the <code><ppk><\/code> tag.<\/li>\n\t<\/ul>\n\n\t<\/p><\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM getElementsByName()","match":"getElementsByName","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">hasFeature()<\/div>\n\t\tCheck if a document has a certain feature.\n\t\t<br \/><br \/><a href=\"tests\/implementation.html#hasFeature()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>document.implementation.hasFeature('XML','1.0')<\/pre>\n\t<p>Returns <code>true<\/code> if the browser considers itself to be supporting XML 1.0.\n\tOther values include Core, HTML, Range, and CSS.<\/p>\n\t<p>Note that this method reports the browser's own assessment of its capabilities.\n\tThere is no independent check.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM hasFeature()","match":"hasFeature","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">isSupported()<\/div>\n\t\tCheck if an element has a certain feature.\n\t\t<br \/><br \/><a href=\"tests\/isSupported.html#isSupported()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\" colspan=\"4\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.isSupported('XML','1.0')<\/pre>\n\t<p>Returns <code>true<\/code> if the browser considers itself to be supporting XML 1.0.\n\tOther values include Core, HTML, Range, and CSS.<\/p>\n\t<p>Note that this method reports the browser's own assessment of its capabilities.\n\tThere is no independent check.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM isSupported()","match":"isSupported","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">item()<\/div>\n\t\tAccess an item in an array\n\t\t<br \/><br \/><a href=\"tests\/basics.html#item()\">Test page<\/a>\n\t<b class=\"warning\">Not necessary in JavaScript<\/b>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>document.getElementsByTagName('P').item(0)<\/pre>\n\t<p>The same as <code>document.getElementsByTagName('P')[0]<\/code>.<\/p>\n\t<p>The <code>item()<\/code> method is meant for other programming languages where nodeLists\n\tlike those returned by getElementsByTagName are not conveniently accessible as if they were arrays.<\/p>\n\t<p>You don't need <code>item()<\/code> at all in JavaScript.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM item()","match":"item","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">normalize()<\/div>\n\t\tMerge adjacent text nodes into one node\n\t\t<br \/><br \/><a href=\"tests\/data.html#splitText()%20and%20normalize()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.normalize()<\/pre>\n\t<p>All child nodes of node <code>x<\/code> that are text nodes and have other text nodes as siblings, are merged.\n\tThis is in fact the reverse of <code>splitText<\/code>: text nodes that were split, come together again.\n\t<\/p><\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM normalize()","match":"normalize","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">ownerDocument<\/div>\n\t\tThe document that 'owns' the element\n\t\t<br \/><br \/><a href=\"tests\/document.html#ownerDocument\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp no\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.ownerDocument<\/pre>\n\t<p>Refers to the document object that 'owns' node <code>x<\/code>. This is the document node.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"$0","tool_tip_format":"html","display":"DOM ownerDocument","match":"ownerDocument","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">splitText()<\/div>\n\t\tSplit a text node into two text nodes\n\t\t<br \/><br \/><a href=\"tests\/data.html#splitText()%20and%20normalize()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp yes\">Yes<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.splitText(5)<\/pre>\n\t<p>Split the text node <code>x<\/code> at the 6th character. <code>x<\/code> now contains the first part (char. 0-5), while a new\n\tnode is created (and becomes <code>x.nextSibling<\/code>) which contains the second part (char. 6-end) of the orginial text.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM splitText()","match":"splitText","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">applyElement()<\/div>\n\t\tSomething with nodes\n\t\t<br \/><br \/><a href=\"tests\/mscore.html#applyElement()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"3\">Yes<\/td>\n\t<td class=\"comp buggy\">Buggy<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>var y = document.createElement('i');\nx.applyElement(y)<\/pre>\n\t<p>The <code><i><\/code> element is inserted into element <code>x<\/code>, around the text.<\/p>\n\t<ul>\n\t\t<li>IE8b2 does this, but the change only shows when you click on the test element.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM applyElement()","match":"applyElement","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">clearAttributes()<\/div>\n\t\tRemove all attributes from a node\n\t\t<br \/><br \/><a href=\"tests\/attributesMisc.html#Microsoft%20attribute%20methods\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp incomplete\" colspan=\"4\">Incom<wbr>plete<\/wbr><\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.clearAttributes()<\/pre>\n\t<p>Remove all attributes from node <code>x<\/code>.<\/p>\n\t<ul>\n\t\t<li>IE doesn't clear event handlers. IE 7 doesn't clear inline styles.<\/li>\n\t<\/ul>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM clearAttributes()","match":"clearAttributes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">merge<wbr>Attributes()<\/wbr><\/div>\n\t\tCopy all attributes of one node to another node\n\t\t<br \/><br \/><a href=\"tests\/attributesMisc.html#Microsoft%20attribute%20methods\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.mergeAttributes(y)<\/pre>\n\t<p>Copy all of node <code>y<\/code>'s attributes to node <code>x<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM mergeAttributes()","match":"mergeAttributes","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">removeNode()<\/div>\n\t\tRemove a node\n\t\t<br \/><br \/><a href=\"tests\/mscore.html#removeNode()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp yes\" colspan=\"2\">Yes<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.removeNode(true | false)<\/pre>\n\t<p>Remove node <code>x<\/code> from the document. If you use the argument <code>true<\/code> its children are also removed;\n\tif you use <code>false<\/code> they aren't. Note that all text nodes count as children, too.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM removeNode()","match":"removeNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">replaceNode()<\/div>\n\t\tReplace a node by another node\n\t\t<br \/><br \/><a href=\"tests\/mscore.html#replaceNode()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.replaceNode(y)<\/pre>\n\t<p>Replace node <code>x<\/code> by node <code>y<\/code>.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM replaceNode()","match":"replaceNode","image":"DOM"},
|
|
{"tool_tip":"<table cellspacing=\"5\" class=\"compatibility wide\">\n<tr class=\"compheader\">\n\t\t<th>Method or property<\/th>\n\t\t<th>IE 5.5<\/th>\n\t\t<th>IE 6<\/th>\n\t\t<th>IE 7<\/th>\n\t\t<th>IE8b2<\/th>\n\t\t<th>FF 2<\/th>\n\t\t<th>FF 3<\/th>\n\t\t<th>Saf 3.0 Win<\/th>\n\t\t<th>Saf 3.1 Win<\/th>\n\t\t<th>iPhone 3G<\/th>\n\t\t<th>Opera 9.26<\/th>\n\t\t<th>Opera 9.51<\/th>\n\t\t<th>Konqueror 3.5.7<\/th>\n\t<\/tr>\n<tr>\n\t<td class=\"declaration\" rowspan=\"2\">\n\t\t<div class=\"name\">swapNode()<\/div>\n\t\tSwap two nodes\n\t\t<br \/><br \/><a href=\"tests\/mscore.html#swapNode()\">Test page<\/a>\n\t<\/td>\n\t<td class=\"comp yes\" colspan=\"4\">Yes<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\" colspan=\"3\">No<\/td>\n\t<td class=\"comp no\" colspan=\"2\">No<\/td>\n\t<td class=\"comp no\">No<\/td>\n<\/tr>\n<tr>\n\t<td colspan=\"12\"><pre>x.swapNode(y)<\/pre>\n\t<p>Put node <code>x<\/code> in node <code>y<\/code>'s place and vice versa.<\/p>\n\t<\/td>\n<\/tr>\n<\/table>\n\n<cite>Excerpt from http:\/\/www.<b>quirksmode.org<\/b>\/dom\/w3c_core.html<\/cite>","insert":"(${1:})$0","tool_tip_format":"html","display":"DOM swapNode()","match":"swapNode","image":"DOM"}],"tool_tip_format":"html"} |