You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'attr-value-double-quotes' when set to false should check for single quotes instead? #147
Right now when attr-value-double-quotes is set to true it checks to see if attribute values are in double quotes. But when it is false it doesn't check presence of quotes at all. I assume a more intuitive implementation would be that when specified as false that it would check for single quotes instead.
changed the title [-]`attr-value-double-quotes` when set to false should check for single quotes instead?[/-][+]'attr-value-double-quotes' when set to false should check for single quotes instead?[/+]on Jun 9, 2016
I disagree. People should be allowed to omit quotes if they want (and if they can, of course!), or to mix quotes if that's what they like (or if it fits a need).
Another rule to enforce single quote is preferable.
I see @JustinDFuller made a PR following this idea, BTW...
Thanks @PhiLhoSoft@alallier@yaniswang We have a PR (that passed tests) for this issue, if people are agreed on the implementation could we look at accepting it?
In my opinion, we should put attr-value-double-quotes and attr-value-single-quotes into a rule together attr-value-quotes and make the options more extensible
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
[-]`attr-value-double-quotes` when set to false should check for single quotes instead?[/-][+]'attr-value-double-quotes' when set to false should check for single quotes instead?[/+]PhiLhoSoft commentedon Jul 8, 2016
I disagree. People should be allowed to omit quotes if they want (and if they can, of course!), or to mix quotes if that's what they like (or if it fits a need).
Another rule to enforce single quote is preferable.
I see @JustinDFuller made a PR following this idea, BTW...
JustinDFuller commentedon Jul 8, 2016
Thanks @PhiLhoSoft @alallier @yaniswang We have a PR (that passed tests) for this issue, if people are agreed on the implementation could we look at accepting it?
alallier commentedon Jul 9, 2016
I agree the new rule is good. Although a friend of mine tried to implement this before and it was never accepted see #66
Shinigami92 commentedon Aug 26, 2018
In my opinion, we should put
attr-value-double-quotesandattr-value-single-quotesinto a rule togetherattr-value-quotesand make the options more extensible{ "attr-value-quotes": [true, { "quote": "single", "severity": "warning" }] }The value
trueorfalseshould only indicate whether the rule is active or notThis will make #154 obsolete
fix(htmlhint): added rule for quotes around attribute values (htmlhin…
fix(htmlhint): added rule for quotes around attribute values (#147) (#…
fix(htmlhint): added rule for quotes around attribute values (#147) (#…
Merge develop <> Master (#366)
stale commentedon May 14, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.