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

✨ FR Validator should reject invalid <script type="application/json"> #15888

Closed
jpettitt opened this issue Jun 6, 2018 · 6 comments
Closed

Comments

@jpettitt
Copy link
Contributor

jpettitt commented Jun 6, 2018

Invalid JSON in amp component makes pages behave in unexpected and invalid ways. This is a feature request to add JSON validation to the validator and to treat as invalid any AMP page with bad <script type="application/json"> tags.

@jpettitt
Copy link
Contributor Author

jpettitt commented Jun 6, 2018

Related to #15885

@newmuis
Copy link
Contributor

newmuis commented Jun 7, 2018

amp-consent and amp-story would benefit from this too.

@jpettitt
Copy link
Contributor Author

jpettitt commented Jun 7, 2018

and amp-analytics

@aghassemi
Copy link
Contributor

+1

@honeybadgerdontcare
Copy link
Contributor

We'll start with emitting a warning in the validator when JSON can't be parsed. We can change it to an error when we're comfortable we've given developers enough time to update their JSON.

Gregable added a commit that referenced this issue Aug 6, 2018
- Emits a warning if JSON cannot be parsed #15888 
- Add `amp-pan-zoom` to experimental format #17150 
- Clarify `INLINE_STYLE_TOO_LONG` error message.
- Enable the `amp-date-picker` `minimum-nights` attribute #17201, #17220
- `amp-list`: Require `reset-on-refresh="always"` for local data #17221 
- `amp-3d-glt`: add attribute `clearColor` #17085
@Gregable
Copy link
Member

Gregable commented Aug 8, 2019

@Gregable Gregable closed this as completed Aug 8, 2019
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

6 participants