3 ms·
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
by __derek__ 11y ago
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>");
- exprx 11y agoIn this particular case, I'd write var el = $("<a href=/ class=link>Link</a>");