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

🐛 Add check to disable toggling for amp internal classes #23906

Merged
merged 2 commits into from
Aug 12, 2019

Conversation

leafsy
Copy link
Contributor

@leafsy leafsy commented Aug 12, 2019

Fixes #22435

Add a check in the handleToggleClass method to prevent toggling when class name is internal to amp (prefixed by 'i-amphtml-', '-amp-', or 'amp-').

@cathyxz cathyxz merged commit a72928c into ampproject:master Aug 12, 2019
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
…23906)

* Add check to prevent toggling internal class

* Fix type check error
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.

toggleClass could remove internal i-amphtml- and amp- prefixed classes
3 participants