4 ms·
document.getElementById('foo').classList.remove('bold'); see https://developer.mozilla.org/en-US/docs/Web/API/Element.classList https://developer.mozilla.org/e
by pawelk 12y ago
document.getElementById('foo').classList.remove('bold');
see https://developer.mozilla.org/en-US/docs/Web/API/Element.classList https://developer.mozilla.org/en-US/docs/Web/API/Element.cla...
- prezjordan 12y agoOnly since IE10.
- ulisesrmzroche 12y agoIf I saw that, first comment on the PR would be to wrap that eye sore in a wrapper function with a clear name. Which is basically what jQuery is doing.
- masklinn 12y agoUnless it turns out there's no `foo` in the page, then that blows up.