-
Notifications
You must be signed in to change notification settings - Fork 92
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 for @media
rule
#552
Comments
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 4, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 4, 2025
Merged
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 4, 2025
@spassarop - Can you look into this and the PR he submitted? |
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 5, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 10, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 10, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 10, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 10, 2025
jonah1und1
added a commit
to jonah1und1/antisamy
that referenced
this issue
Feb 10, 2025
davewichers
pushed a commit
that referenced
this issue
Feb 18, 2025
* add(gh-552): support for @media rule * fix(gh-552): failing test due to missing literal in policy * test(gh-552): add some more test cases for abbreviated syntax * refactor(gh-552): move new policy rules from default policy to anythinggoes * test(gh-552): default policy and extend it accordingly * add(gh-552): handling of or, adds new test cases, refactors parsing * refactor(gh-552): make Java 7 compliant * fix(gh-552): change logical operator to OR for regex pattern matching
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Antisamy seems to not properly support the
@media
rule.Expected behaviour
css inside a
@media
rule should the validated in accordance to the policy provided.Current behaviour
Antisamy removes the
@media
rule and everything inside of it.I've created an example project with a corresponding test:
https://github.com/jonah1und1/antisamy-media
Possible implementation
I've created a PR with a possible implementation for this new feature: #553 .
Please feel free to review and/or comment.
The text was updated successfully, but these errors were encountered: