Skip to content

langref: fix unclosed and lonely tag#14250

Merged
andrewrk merged 2 commits intoziglang:masterfrom
Techatrix:patch-docs
Jan 10, 2023
Merged

langref: fix unclosed and lonely tag#14250
andrewrk merged 2 commits intoziglang:masterfrom
Techatrix:patch-docs

Conversation

@Techatrix
Copy link
Copy Markdown
Contributor

Previously the number of <p> and </p> where not the same.
Line 5588 has no closing tag and there is a lone tag on line 9414.

@andrewrk
Copy link
Copy Markdown
Member

andrewrk commented Jan 9, 2023

The CI runs tidy on the lang ref, we should figure out why this wasn't caught by it

@tato
Copy link
Copy Markdown

tato commented Jan 10, 2023

it might assume it was intentional

A p element's end tag may be omitted if the p element is immediately followed by an address, article, aside, blockquote, details, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, main, menu, nav, ol, p, pre, section, table, or ul element, or if there is no more content in the parent element and the parent element is an HTML element that is not an a, audio, del, ins, map, noscript, or video element, or an autonomous custom element.

https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission

Comment thread doc/langref.html.in
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
@andrewrk andrewrk merged commit 0a8b7ad into ziglang:master Jan 10, 2023
@Techatrix Techatrix deleted the patch-docs branch September 6, 2023 21:01
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.

3 participants