Repository navigation
✨ [amp-brid-player] Allow the JSON config child in the validator - #40583
Open
danijel-ristic wants to merge 6 commits into
Open
danijel-ristic wants to merge 6 commits into
danijel-ristic wants to merge 6 commits into
Conversation
|
|
amp-brid-player and its alias amp-target-video-player have read a child <script type="application/json"> as player config since ampproject#38984, but the validator rules were never updated, so pages using it fail validation. Add tag specs for script[type=application/json] under both tag names, valid test cases for each, and document the JSON config child.
danijel-ristic
force-pushed
the
brid-player-json-child-validator
branch
from
November 27, 2026 07:52
a3f0bbf to
e7690f5
Compare
brid.tv no longer resolves, which fails the check-links CI step for any PR touching this doc. Point the intro link at target-video.com, refer to the platform as TargetVideo, and mention the amp-target-video-player alias.
GitHub answers automated requests for blob pages with 503, which fails check-links even though the link is valid.
Member
Blocking
Minor
Nits
|
The config was appended to the iframe src as raw JSON, so a #, &, =, + or % in a value cut off the URL or added extra query params. Encode it with encodeURIComponent. When a <script> child is present but its config can't be used (more than one child, wrong type or invalid JSON), log a warning instead of dropping it silently. Players without a <script> child stay quiet. Add tests for reserved characters, the amp-target-video-player alias with a config, and the warning.
…hild Cover a wrong type, an HTML comment in the JSON, a script nested inside a div, and a script with a src attribute.
Say that amp-target-video-player takes the same attributes and still needs the amp-brid-player extension script, that only a single <script> config child is used, and link to TargetVideo's embed options. Replace the link-check exemption with a relative link to the validator rules, which check-links verifies locally.
danijel-ristic
force-pushed
the
brid-player-json-child-validator
branch
from
December 2, 2026 10:04
80980af to
83e6aa4
Compare
Contributor
Author
|
Hi @erwinmombay, any updates on this? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
amp-brid-player and its alias amp-target-video-player have read a child <script type="application/json"> as player config since #38984, but the validator rules were never updated, so pages using it fail validation.
Add tag specs for script[type=application/json] under both tag names, valid test cases for each, and document the JSON config child.