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

Fix invalid HTML: /> syntax on non-void elements #40473

Merged
merged 4 commits into from
Jun 12, 2023

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Jun 9, 2023

In VSCode, I searched for

<(a|abbr|article|audio|b|bdi|bdo|blockquote|body|button|canvas|caption|cite|code|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|fieldset|figcaption|figure|footer|form|h[1-6]|head|header|html|i|iframe|ins|kbd|label|legend|li|main|map|mark|menu|meter|nav|noscript|object|ol|optgroup|option|output|p|picture|pre|progress|q|rp|rt|ruby|s|samp|script|search|section|select|slot|small|span|strong|style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|u|ul|var|video)(\s+[^>]+)?\s*/>

and replaced with

<$1$2></$1>

(with some manual fixups)

Files to include: *.html, *.htm
Files to exclude: dom/nodes/, domparsing/, quirks/, conformance-checkers/, acid/ (these are testing XML parsing, except Acid3 which has pseudo-markup in comments)

@wpt-pr-bot wpt-pr-bot requested a review from RByers June 9, 2023 13:22
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but please carefully check before/after results in browsers.

css/css-scoping/shadow-cascade-order-001.html Outdated Show resolved Hide resolved
Copy link
Contributor

@reillyeon reillyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

media-capture LGTM, I assume that's why the bot wants me to look at this.

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.

8 participants