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

Ignore invalid URLs inside template elements #492

Closed
aarongustafson opened this issue Oct 5, 2018 · 3 comments
Closed

Ignore invalid URLs inside template elements #492

aarongustafson opened this issue Oct 5, 2018 · 3 comments

Comments

@aarongustafson
Copy link

HTML templates are used for JavaScript and often contain placeholders or empty attributes. HTML proofing rules for links, images, etc. should not be run in there.

@Floppy
Copy link
Contributor

Floppy commented Nov 19, 2018

Interesting, I'd not come across this tag before. From the MDN page:

While the parser does process the contents of the <template> element while loading the page, it does so only to ensure that those contents are valid; the element's contents are not rendered, however.

presumably html-proofer should do the same, though I'm not clear on what "valid" means in this case.

@gjtorikian
Copy link
Owner

I'm also not familiar with this tag! @aarongustafson could you show me a real-world HTML snippet where html-proofer is erroneously interfering with tags inside of a <template>?

@gjtorikian
Copy link
Owner

no response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants