Skip to content

[Security] Removing self-closing slash from <input>s #17308

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

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

ThomasLandauer
Copy link
Contributor

I suggested the same for Symfony's templates, see symfony/symfony#47715

I suggested the same for Symfony's templates, see symfony/symfony#47715
@carsonbot carsonbot added this to the 6.2 milestone Sep 29, 2022
@carsonbot carsonbot changed the title Removing self-closing slash from <input>s [Security] Removing self-closing slash from <input>s Oct 5, 2022
@javiereguiluz
Copy link
Member

Thanks Thomas.

@javiereguiluz javiereguiluz merged commit f5efd90 into symfony:6.2 Oct 5, 2022
@ThomasLandauer ThomasLandauer deleted the patch-3 branch October 5, 2022 11:12
ThomasLandauer added a commit to ThomasLandauer/Twig that referenced this pull request May 8, 2023
https://validator.w3.org/nu/ says:

> Warning: Self-closing tag syntax in text/html documents is [widely discouraged](https://google.github.io/styleguide/htmlcssguide.html#Document_Type); it’s unnecessary and [interacts badly with other HTML features](https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=10809) (e.g., unquoted attribute values). If you’re using a tool that injects self-closing tag syntax into all void elements, [without any option to prevent it from doing so](prettier/prettier#5246), then consider switching to a different tool.

See also symfony/symfony-docs#17308
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants