Does it matter which way the following selector is written? It validates both ways and the W3C spec seems silent on the issue of quotation marks.
Option 1:
input[type=text]
Option 2:
input[type='text']
I've seen selectors that work both with and without quotes. Do both ways always work for either CSS or jQuery?
So, is using the quotation marks simply a matter of preference? Semantics? CSS version?
Do we have two methods because of backward compatibility? If so, which way is best going forward?
Despite the accepted answer to this other SO question, I'm thinking quotes is best:
input[type='text']