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

Improve SVG validation #2968

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Improve SVG validation #2968

wants to merge 1 commit into from

Conversation

thomasdax98
Copy link
Member

@thomasdax98 thomasdax98 commented Dec 19, 2024

Description

Improve SVG validation

Following tags are banned in SVGs:

  • script
  • [new] foreignObject
  • [new] use
  • [new] image
  • [new] animate
  • [new] animateMotion
  • [new] animateTransform
  • [new] set

Following attributes are banned:

  • Event handlers (onload, onclick, ...)
  • [new] href and xlink:href (if the value starts with http://, https:// or javascript:)

Acceptance criteria

Screenshots/screencasts

Bildschirmfoto 2024-12-19 um 15 59 18

Further information

@thomasdax98 thomasdax98 marked this pull request as ready for review December 19, 2024 15:20
@auto-assign auto-assign bot requested a review from johnnyomair December 19, 2024 15:20
@thomasdax98 thomasdax98 force-pushed the improve-svg-validation branch from de194d3 to 1aa6282 Compare December 20, 2024 08:12
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

1 participant