-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Comments
Related to #15885 |
|
and |
+1 |
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. |
- 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
This was implemented a while ago by @honeybadgerdontcare See example output in https://github.com/ampproject/amphtml/blob/master/extensions/amp-geo/0.1/test/validator-amp-geo.out |
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.The text was updated successfully, but these errors were encountered: