@smashingmag Hi there, I was looking at your source code and wondering if it is intentional to avoid quotes on your HTML tags attributes? cc @brucel
-
-
Well, it's just a part of our compression that takes care of it. Less bytes is better, right? ;)
1 reply 0 retweets 1 like -
Replying to @smashingmag @Simounet
and quotes aren't necessary unless there's a space in the attribute value eg class=lovely is fine, but for two values, class="lovely trousers"
2 replies 0 retweets 2 likes -
There’s a little bit more to it than just spaces. See https://mathiasbynens.be/notes/unquoted-attribute-values … for details.
1 reply 3 retweets 3 likes -
Wasn't the CSS syntax changed to allow identifiers to start with double dash (with the introduction of custom properties)?
1 reply 0 retweets 0 likes
This article predates that change, but good point — updated!
3:59 AM - 20 Apr 2019
0 replies
0 retweets
1 like
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.