Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDouble quotes permitted outside when nested singlequotes #1022
Comments
This comment has been minimized.
This comment has been minimized.
|
In general, single quotes are preferred. However, sometimes you have a string with lots of single quotes in it (that can't be replaced with double quotes like in your example) and it's desirable to be able to use a double quote string to avoid many escape sequences. I'm curious how much breakage there would be in the ecosystem if we tightened this rule up, but I'm not so sure this is actually a good idea. |
feross
added
the
need more info
label
Apr 30, 2018
no-response
bot
closed this
May 10, 2018
feross
removed
the
need more info
label
May 10, 2018
standard
deleted a comment from
no-response bot
May 10, 2018
feross
reopened this
May 10, 2018
feross
added this to the
standard v12 milestone
May 10, 2018
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Aug 8, 2018
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
label
Aug 8, 2018
stale
bot
closed this
Aug 15, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Nov 13, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
bodurkalukasz commentedDec 4, 2017
Below scripts are both valid currently:
countryCodeInput: "input[name='country-code']"countryCodeInput: 'input[name="country-code"]'Shouldn't one of those be preferred?