Skip to content

fix: void elements#10493

Merged
lilnasy merged 3 commits intowithastro:mainfrom
firefoxic:fix/void-elements
Mar 19, 2024
Merged

fix: void elements#10493
lilnasy merged 3 commits intowithastro:mainfrom
firefoxic:fix/void-elements

Conversation

@firefoxic
Copy link
Copy Markdown
Contributor

@firefoxic firefoxic commented Mar 19, 2024

Changes

Testing

I tested this change in my astro-project — it fixed the validity of the markup.

Docs

Correcting the documentation is most likely not necessary.

HTML is not XML. It doesn't have self-closing tags, it has void element tags that don't need closing slashes.

Now generated void elements (e.g. link with path to style file) do not pass validation, which can be easily fixed by simply removing two characters.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 19, 2024

🦋 Changeset detected

Latest commit: 367f275

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Mar 19, 2024
@firefoxic firefoxic changed the title Fix/void elements fix: void elements Mar 19, 2024
@lilnasy lilnasy merged commit e4a6462 into withastro:main Mar 19, 2024
@astrobot-houston astrobot-houston mentioned this pull request Mar 19, 2024
@firefoxic firefoxic deleted the fix/void-elements branch March 19, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants