-
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
Support amp-facebook-comments
, -like
, and -page
with one extension binary (1.0
only)
#35064
Conversation
amp-facebook-comments
, -like
, and -page
with one extension binaryamp-facebook-comments
, -like
, and -page
with one extension binary (1.0
only)
We've accomplished this before using amp-facebook-1.0.js tagspec: amp-facebook-[comments|like|page]-0.1.js tagspecs: Tests ftw. |
Thanks for this! Tests was a great call, and really helps to illustrate what I'm trying to express. I took a stab at this in the most recent commit and am running into a couple issues:
|
Hey @ampproject/wg-caching! These files were changed:
|
There is not. I'll try to find time tonight to think of some alternatives. |
I'm going to move the validation changes to a separate PR for discussion, given the other changes have been approved. Thanks! |
Implements #34969
In draft mode until #35027 is merged, at which point unit tests failures will also be resolved.
Open question for @ampproject/wg-caching:
Is it possible to express validation rules forcing usage of
script
tags importingamp-facebook-1.0.js
and any of[amp-facebook-comments-0.1.js, amp-facebook-like-0.1.js, amp-facebook-page-0.1.js]
to be mutually exclusive? That is, a page can importamp-facebook-1.0.js
as long as it does not import any of the others, or it can import any subset of the others. If not, pages will not be broken but may need additional documentation explaining the behavior to expect.