Use head/body tags in redirection markup#233
Conversation
|
Rebased off latest master |
|
Updated the PR name to reflect that! You’re right that they can be omitted according to the spec; html-validate is being more strict than the spec here. Also, interestingly, the Google style guide recommends their omission. |
|
@cmbuckley Yep, I saw the Google recommendation as well. Thanks for posting a link here. Also, is |
|
html-validate only validates HTML5 documents, but they do state strictness as a design choice. I can see either side here; the PR isn’t strictly necessary and the validation rules can be set to warn-only, but I would struggle to consider this an “optimisation” and it would be nice to keep the validator rules for other parts of the content model. I haven’t found a nice way to exclude specific files from the validator. |
Co-authored-by: Stuart <stuart.wheaton@jhuapl.edu> Co-authored-by: Chris Buckley <chris@cmbuckley.co.uk>
Running a Netlify plugin using html-validate fires warnings against redirect pages.