(element, classString)
| 113 | * with ' ' as separator. |
| 114 | */ |
| 115 | export const add = (element, classString) => |
| 116 | trackClass( |
| 117 | element.classList, |
| 118 | element.nodeName.toLowerCase() == "html" ? htmlClassList : docBodyClassList, |
| 119 | classString.split(" ") |
| 120 | ); |
| 121 | |
| 122 | /** |
| 123 | * Public inferface to remove classes from the document.body. |
nothing calls this directly
no test coverage detected