@mathias https://twitter.com/mathias/status/413396245412339712 … <- I think you’re missing the point here ;)
@bdc Sure! IMHO `element.classList.add('foo')` would be just as simple and more in line with best practices, but whatever works.
-
-
@mathias Everything will look awful *on purpose*. I strongly believe you should focus on quick wins in the beginning, not on best practices.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias Another example: setAttribute(“class”, “foo”) instead of className or classList. Much easier when you start (works for every att).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.