Skip to content

Commit

Permalink
Remove use of <param> from an example
Browse files Browse the repository at this point in the history
Since that's an obsolete element, it's not so helpful to include.
  • Loading branch information
zhangenming authored Dec 11, 2024
1 parent efce764 commit 67e4445
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -12978,18 +12978,15 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
has to be applied iteratively.</p>

<div class="example">

<p>Consider the following markup fragment:</p>

<pre><code class="html">&lt;p>&lt;object>&lt;param>&lt;ins>&lt;map>&lt;a href="/">Apples&lt;/a>&lt;/map>&lt;/ins>&lt;/object>&lt;/p></code></pre>
<pre><code class="html">&lt;p>&lt;object>&lt;ins>&lt;map>&lt;a href="/">Apples&lt;/a>&lt;/map>&lt;/ins>&lt;/object>&lt;/p></code></pre>

<p>To check whether "Apples" is allowed inside the <code>a</code> element, the content models are
examined. The <code>a</code> element's content model is transparent, as is the <code>map</code>
element's, as is the <code>ins</code> element's, as is the part of the <code>object</code>
element's in which the <code>ins</code> element is found. The <code>object</code> element is
found in the <code>p</code> element, whose content model is <span>phrasing content</span>. Thus,
"Apples" is allowed, as text is phrasing content.</p>

element's, as is the <code>ins</code> element's, as is the <code>object</code> element's. The
<code>object</code> element is found in the <code>p</code> element, whose content model is
<span>phrasing content</span>. Thus, "Apples" is allowed, as text is phrasing content.</p>
</div>

<p>When a transparent element has no parent, then the part of its content model that is
Expand Down

0 comments on commit 67e4445

Please sign in to comment.