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

Make the html sanitizer allow the rel attribute on <a> tags #13413

Merged
merged 5 commits into from Feb 14, 2018

Conversation

josh313
Copy link
Contributor

@josh313 josh313 commented Feb 9, 2018

In #13300, AMP docs can now declare links as AMP links by adding a rel="amphtml" to the <a> tag. This sanitizer class, which is run on the output of mustache templates, was removing rel attribute on <a> tags, so it was not possible to use this attribute within an amp-list or other templated component.

@choumx

@josh313
Copy link
Contributor Author

josh313 commented Feb 13, 2018

@choumx Everything is passing so this is ready to merge whenever you get a chance.

@dreamofabear dreamofabear merged commit 1473eda into ampproject:master Feb 14, 2018
protonate pushed a commit to protonate/amphtml that referenced this pull request Feb 26, 2018
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
protonate pushed a commit to protonate/amphtml that referenced this pull request Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants