News for hackers. Stuff that matters.
Re:Front End Development Guidelines by fuzionmonkey on Thursday May 05, 2011 @08:46PM (#2519564)
I think the idea is that if you use single quotes for strings, you don't have to escape the double quotes that are often found in html. '<p id="foo">something</p>'

But the same goes for something like "you can't do that"

I guess it just depends what you don't want to escape. For Google, the more probable scenario was probably the former.

Re:Front End Development Guidelines by julian37 on Friday May 06, 2011 @09:56AM (#2520918)
The former isn't a very good reason: HTML/XML accept both double and single quotes, so "<p id='foo'>something</p>" would work equally well.
Re:Front End Development Guidelines by joshontheweb on Friday May 06, 2011 @12:49PM (#2521533)
yes, but it is much more common for double quotes to be used in html