Skip to content

Linter: Allow self-closing tags in SVG (html-no-self-closing)#442

Merged
marcoroth merged 2 commits intomainfrom
allow-self-closing-in-svg
Aug 25, 2025
Merged

Linter: Allow self-closing tags in SVG (html-no-self-closing)#442
marcoroth merged 2 commits intomainfrom
allow-self-closing-in-svg

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Aug 25, 2025

This pull request updates the html-no-self-closing linter rule to allow self-closing tags within <svg> elements.

This is now allowed:

<svg>
  <path />
</svg

Resolves #415.

@marcoroth marcoroth merged commit 3108e5a into main Aug 25, 2025
7 checks passed
@marcoroth marcoroth deleted the allow-self-closing-in-svg branch August 25, 2025 16:31
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.

Linter: html-no-self-closing is flagging elements within <svg> element

1 participant