-
-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html5+svg attributes are camelCase #28
Comments
If not all of your attrs is lowercase, you can try to turn off the rule: attr-lowercase. |
@yaniswang Seems like it'd be worth adding some whitelist attributes (like viewBox) to your |
If the doctype is html5 attr-lowercase should automatically be turned off. |
I suggest to choose our own rules set, if i use in HTML5, then you no need to choose attr-lowercase rule. |
When enabling the rule instead of using a boolean, use an array with the attributes (camelCased) that you want to ignore ```json { "attr-lowercase": ["viewBox"] } ``` Fixes htmlhint#28
Could it be the case for |
Any plans on merging #188 in? |
My HTML document's first line is |
In SVG, some attributes are camelCase. I'm using Brackets with the HTMLHint extension and HTMLHint flags them as errors. For example, it complains about viewBox in this snippet.
Ideally, HTMLHint would have a list of attributes that are camelCase (that can be extended / controlled by the user). Extra credit if it knows which tags allow which attribute.
The text was updated successfully, but these errors were encountered: