-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
'Head script disabled' shows error if <script> tag is outside of the <body> tag #10
Comments
Do you have Also, it only supports fully correct html files, not partials. That's why I issued this feature request: #9 |
Yes, i'm using the htmlhint plugin with .PHP files, and it's working perfectly. The HTML blocks are outside the PHP tags ( The point is, if a
|
I think it's a miracle that that actually works, and it's unintended use. Also - you can't really use all the rules that way, right? Like the doctype-first rule. |
Yes, don't make sense to use the rule you mentioned, in PHP project, because not all files have a I had to exclude this rule from my |
HTMLHint can't scan template file, or php file. For example:
HTMLHint will report tag-pair error. |
I have some .PHP files that have
<script>
tags that, doesn't have a<head>
or<body>
tag, because they are just included in another .PHP file. So, when i run the task 'htmlhint' with the option 'Head script disabled' activate, it shows some errors, because it dont find these mentioned tags. But actually, this is not an error. The error must be showed only if there is a<script>
tag inside the tag<head>
. Please, include an option to ignore it if no tag is founded.P.S.: (Sorry about the english=))
The text was updated successfully, but these errors were encountered: