Skip to content
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

PHP include .html files - validation errors #8

Open
matronator opened this issue May 15, 2019 · 1 comment
Open

PHP include .html files - validation errors #8

matronator opened this issue May 15, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@matronator
Copy link

The validator throws errors in .html file snippets that are to be included in another file with PHP's include("header.html"). Example of what I mean:

validationerror

I don't normally work with PHP, so this is not that big of a deal, I just disabled the extension for this one project, BUT...

It would be nice if the extension could somehow recognize that a certain .html file is just a snippet and to not validate it. Maybe if the file is missing doctype, html, head and body tags, it would not validate it, or something like that.

@Umoxfo Umoxfo added enhancement New feature or request help wanted Extra attention is needed labels May 18, 2019
@DustinLuck
Copy link

I have a similar use case for Google Apps Scripts (GAS) projects where I've created fragment files and due to GAS only handling js/html files, all of my CSS & JavaScript files have this same issue. I was thinking a good solution might be to allow for a comment like <!--fragment--> to be added at the top of a file to note that it's a fragment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants