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

Fix the allowed attributes for amp-position-observer #1306

Conversation

felixarntz
Copy link
Collaborator

I tried to use amp-position-observer with the plugin earlier and noticed that it strips out the target-id attribute as invalid. That is because the whitelist for that tag only allows a target attribute which appears to be wrong to me. The AMP documentation states that target-id is the correct name of the attribute.

@westonruter westonruter added this to the v1.0 milestone Aug 3, 2018
@westonruter
Copy link
Member

I'll try to re-generating from the spec by tomorrow unless you beat me to it.

@westonruter
Copy link
Member

It turns out that target-id is actually incorrect in the docs:

image

It is supposed to be just target: https://github.com/ampproject/amphtml/blob/1143ef048f4845ff0ae21a78c07053646508fc36/extensions/amp-position-observer/validator-amp-position-observer.protoascii#L45

image

@westonruter westonruter closed this Aug 3, 2018
@westonruter
Copy link
Member

I've opened a PR to fix the docs: ampproject/amphtml#17272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants