Comment

Comment by __derek__

In speculating on reasons behind the preference, my best guess is HTML. It seems more natural/idiomatic to write:

    var el = $('<a href="/" class="link">Link</a>');
rather than

    var el = $("<a href='/' class='link'>Link</a>");
let alone

    var el = $("<a href=\"/\" class=\"link\">Link</a>");
parent __derek__ 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton