javascript - Code by Paul Irish - Good or bad practise? -


i checking view source of site http://mothereffinghsl.com/ . coded paul irish

in code id of html elements not enclosed in quotes few elements. other elements id enclosed in quotes. practice. mistake or purposefully omitted? dont think person paul has overlooked it.

<div id="main" role="main"> <h1>mother-effing <span>hsl()</span></h1> <canvas width=360 height=100><a href="http://noyoueatabagofdicks.com/">your browser doesnt support canvas.</a></canvas> <span id=loading>one sec, bro.</span> <label id=sat>saturation</label> 

what thoughts?

edited after accepting answer

conclusion:

in html5 quotes not necessary, recommend reasons mentioned in comments.

also not practice use quotes attributes , not other though supported.

he's using html5. attribute quotes optional in html5 (and html 4, not in xhtml). see do quote html5 attributes? , http://mathiasbynens.be/notes/unquoted-attribute-values (that second link references paul irish btw!)


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -