Skip to content

Commit

Permalink
The p element's end tag may be omitted when followed by dialog
Browse files Browse the repository at this point in the history
This oversight was not spotted for over twelve years: 2fb24fc.

Fixes #10590.
  • Loading branch information
annevk authored and zcorpan committed Sep 4, 2024
1 parent 10ed38e commit 89c856d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -122583,16 +122583,17 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
<!-- </p> -->
<p>A <code>p</code> element's <span data-x="syntax-end-tag">end tag</span> may be omitted if the
<code>p</code> element is immediately followed by an <code>address</code>, <code>article</code>,
<code>aside</code>, <code>blockquote</code>, <code>details</code>, <code>div</code>,
<code>dl</code>, <code>fieldset</code>, <code>figcaption</code>, <code>figure</code>,
<code>footer</code>, <code>form</code>, <code>h1</code>, <code>h2</code>, <code>h3</code>,
<code>h4</code>, <code>h5</code>, <code>h6</code>, <code>header</code>, <code>hgroup</code>,
<code>hr</code>, <code>main</code>, <code>menu</code>, <code>nav</code>, <code>ol</code>,
<code>p</code>, <code>pre</code>, <code>search</code>, <code>section</code>, <code>table</code>,
or <code>ul</code> element, or if there is no more content in the parent element and the parent
element is an <span data-x="HTML elements">HTML element</span> that is not an <code>a</code>,
<code>audio</code>, <code>del</code>, <code>ins</code>, <code>map</code>, <code>noscript</code>,
or <code>video</code> element, or an <span>autonomous custom element</span>.</p>
<code>aside</code>, <code>blockquote</code>, <code>details</code>, <code>dialog</code>,
<code>div</code>, <code>dl</code>, <code>fieldset</code>, <code>figcaption</code>,
<code>figure</code>, <code>footer</code>, <code>form</code>, <code>h1</code>, <code>h2</code>,
<code>h3</code>, <code>h4</code>, <code>h5</code>, <code>h6</code>, <code>header</code>,
<code>hgroup</code>, <code>hr</code>, <code>main</code>, <code>menu</code>, <code>nav</code>,
<code>ol</code>, <code>p</code>, <code>pre</code>, <code>search</code>, <code>section</code>,
<code>table</code>, or <code>ul</code> element, or if there is no more content in the parent
element and the parent element is an <span data-x="HTML elements">HTML element</span> that is not
an <code>a</code>, <code>audio</code>, <code>del</code>, <code>ins</code>, <code>map</code>,
<code>noscript</code>, or <code>video</code> element, or an <span>autonomous custom
element</span>.</p>

<div class="example">

Expand Down

0 comments on commit 89c856d

Please sign in to comment.