{ "title":"classList (DOMTokenList)", "description":"Method of easily manipulating classes on elements, using the DOMTokenList object.", "spec":"http://www.w3.org/TR/dom/#dom-element-classlist", "status":"wd", "links":[ { "url":"http://hacks.mozilla.org/2010/01/classlist-in-firefox-3-6/", "title":"Mozilla Hacks article" }, { "url":"https://github.com/eligrey/classList.js", "title":"Polyfill script" }, { "url":"http://docs.webplatform.org/wiki/dom/Element/classList", "title":"WebPlatform Docs" }, { "url":"http://www.sitepoint.com/exploring-classlist-api/", "title":"SitePoint article" }, { "url":"http://aurelio.audero.it/demo/classlist-api-demo.html", "title":"Demo using classList" }, { "url":"https://developer.mozilla.org/en-US/docs/Web/API/Element.classList", "title":"MDN article" } ], "bugs":[ { "description":"[Internet Explorer 11 doesn't support multiple tokens passed to the `add` function](https://connect.microsoft.com/IE/Feedback/Details/920755); only the first is used." } ], "categories":[ "DOM", "HTML5" ], "stats":{ "ie":{ "5.5":"p", "6":"p", "7":"p", "8":"p", "9":"p", "10":"a #1 #2", "11":"a #1 #2" }, "edge":{ "12":"y", "13":"y" }, "firefox":{ "2":"p", "3":"p", "3.5":"p", "3.6":"a #2", "4":"a #2", "5":"a #2", "6":"a #2", "7":"a #2", "8":"a #2", "9":"a #2", "10":"a #2", "11":"a #2", "12":"a #2", "13":"a #2", "14":"a #2", "15":"a #2", "16":"a #2", "17":"a #2", "18":"a #2", "19":"a #2", "20":"a #2", "21":"a #2", "22":"a #2", "23":"a #2", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y" }, "chrome":{ "4":"p", "5":"p", "6":"p", "7":"p", "8":"a #1 #2", "9":"a #1 #2", "10":"a #1 #2", "11":"a #1 #2", "12":"a #1 #2", "13":"a #1 #2", "14":"a #1 #2", "15":"a #1 #2", "16":"a #1 #2", "17":"a #1 #2", "18":"a #1 #2", "19":"a #1 #2", "20":"a #1 #2", "21":"a #1 #2", "22":"a #1 #2", "23":"a #2", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y" }, "safari":{ "3.1":"p", "3.2":"p", "4":"p", "5":"p", "5.1":"a #1 #2", "6":"a #1 #2", "6.1":"a #1 #2", "7":"y", "7.1":"y", "8":"y", "9":"y" }, "opera":{ "9":"p", "9.5-9.6":"p", "10.0-10.1":"p", "10.5":"p", "10.6":"p", "11":"p", "11.1":"p", "11.5":"a #2", "11.6":"a #2", "12":"a #2", "12.1":"a #2", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y" }, "ios_saf":{ "3.2":"p", "4.0-4.1":"p", "4.2-4.3":"p", "5.0-5.1":"a #1 #2", "6.0-6.1":"a #1 #2", "7.0-7.1":"y", "8":"y", "8.1-8.4":"y", "9":"y" }, "op_mini":{ "5.0-8.0":"p" }, "android":{ "2.1":"p", "2.2":"p", "2.3":"p", "3":"a #1 #2", "4":"a #1 #2", "4.1":"a #1 #2", "4.2-4.3":"a #1 #2", "4.4":"y", "4.4.3-4.4.4":"y", "44":"y" }, "bb":{ "7":"a #1 #2", "10":"y" }, "op_mob":{ "10":"p", "11":"p", "11.1":"a #2", "11.5":"a #2", "12":"a #2", "12.1":"a #2", "30":"y" }, "and_chr":{ "45":"y" }, "and_ff":{ "41":"y" }, "ie_mob":{ "10":"a #1 #2", "11":"a #1 #2" }, "and_uc":{ "9.9":"a #1 #2" } }, "notes":"", "notes_by_num":{ "1":"Partial support refers to not working on SVG elements.", "2":"Partial support refers to not supporting the second parameter for the `toggle` method" }, "usage_perc_y":70.32, "usage_perc_a":19.18, "ucprefix":false, "parent":"", "keywords":"", "ie_id":"", "chrome_id":"", "shown":true }