Skip to content

Commit

Permalink
Allow img element to be a child of picture element
Browse files Browse the repository at this point in the history
Previously picture element specified that it contains source elements
and one img element, but only source element specified that it can
appear as a child of picture element. Now img element also explicitly
allows this.

This is especially useful for automated tooling which might scrape
through the document and expect a parent-child relationship to be
mutual.
  • Loading branch information
henkkuli authored and zcorpan committed Aug 31, 2023
1 parent 8b9a675 commit e447fd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -28546,6 +28546,7 @@ interface <dfn interface>HTMLSourceElement</dfn> : <span>HTMLElement</span> {
<dd><span>Palpable content</span>.</dd>
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
<dd>Where <span>embedded content</span> is expected.</dd>
<dd>As a child of a <code>picture</code> element, after all <code>source</code> elements.</dd>
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
<dd><span data-x="concept-content-nothing">Nothing</span>.</dd>
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
Expand Down Expand Up @@ -139347,6 +139348,7 @@ INSERT INTERFACES HERE
何志翔 (HE Zhixiang),
Henri Sivonen,
Henrik Lied,
Henrik Lievonen,
Henry Lewis,
Henry Mason,
Henry Story,
Expand Down

0 comments on commit e447fd6

Please sign in to comment.