From 9da1b2dc8b78477c22b44cc8d3099c1c16425930 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Date: Wed, 25 Sep 2019 15:17:03 +0200
Subject: [PATCH 1/2] Make .complete more reliable
These changes are in line with all three browsers. Chrome still diverges significantly from the standard & tests though on other aspects.
Tests: https://github.com/web-platform-tests/wpt/pull/19298.
Fixes #1055, fixes #4475. #4476 remains outstanding.
---
source | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/source b/source
index ae3cd2248f3..2c16d4b1876 100644
--- a/source
+++ b/source
@@ -26519,7 +26519,6 @@ interface HTMLImageElement : HTMLElement {
any of the following conditions is true:
-
- Both the
src
attribute and the HTMLImageElement : HTMLElement {
hack for src="", not srcset=""; present but empty or bogus srcset="" still means complete=false
if it's not in the img-error state -->
- - The final task that is queued by the networking task source once the resource has been fetched
- has been queued.
-
- The
img
element's current request's state is completely available.
+ data-x="img-req-state">state is completely available and its
+ pending request is null.
- The
img
element's current request's state is broken.
-
+ data-x="img-req-state">state is broken and its
+ pending request is null.
Otherwise, the attribute must return false.
- The value of complete
can thus change while
- a script is executing.
-
The currentSrc
IDL attribute
must return the img
element's current request's current URL.
@@ -26573,7 +26566,8 @@ img.decode();
+ https://github.com/whatwg/html/pull/2332#issuecomment-278613713
+ XXX Domenic what to do about this comment? -->
-
If any of the following conditions are true about this img
element:
From 02772ea45f90dd27ad3034caf60dc0b4c4211ba9 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Date: Tue, 15 Oct 2019 13:16:57 +0200
Subject: [PATCH 2/2] remove comment per PR discussion
---
source | 4 ----
1 file changed, 4 deletions(-)
diff --git a/source b/source
index 2c16d4b1876..9e837faf27b 100644
--- a/source
+++ b/source
@@ -26564,10 +26564,6 @@ img.decode();
-
-
If any of the following conditions are true about this img
element: