From de3d25363405e450c023eca368a552851f30fd75 Mon Sep 17 00:00:00 2001 From: Henrik Lievonen Date: Mon, 21 Aug 2023 12:08:15 +0300 Subject: [PATCH] Allow img element to be a child of picture element 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. --- source | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source b/source index 696823da581..a8efe799c2a 100644 --- a/source +++ b/source @@ -28528,6 +28528,7 @@ interface HTMLSourceElement : HTMLElement {
Palpable content.
Contexts in which this element can be used:
Where embedded content is expected.
+
As a child of a picture element, after all source elements.
Content model:
Nothing.
Content attributes:
@@ -139209,6 +139210,7 @@ INSERT INTERFACES HERE 何志翔 (HE Zhixiang), Henri Sivonen, Henrik Lied, + Henrik Lievonen, Henry Lewis, Henry Mason, Henry Story,