UNPKG

437 BJavaScriptView Raw
1'use strict';
2// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
3var documentCreateElement = require('../internals/document-create-element');
4
5var classList = documentCreateElement('span').classList;
6var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
7
8module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;