Skip to content

Validator error if extremely long boilerplate line is not byte perfect #1877

@jpettitt

Description

@jpettitt

I just updated to the latest boilerplate and it's breaking validation.

http://localhost:8000/templates/amptemplate.html:8:4 The mandatory text (CDATA) inside tag 'boilerplate (js enabled)' is missing or incorrect. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#boilerplate)

I tracked it to the fact that I broke the lines in the <style> on ; to make the page easier to read, it seems even an extra space causes a validation fail. I get that checking for a string match is far easier but now the boilerplate is 765 characters I suspect a lot of people are going to try and pretty print it in some way. Is there a better way to enforce this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions