W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2016

UI Events load event status code

From: tomalecwp w <tomalecwp@gmail.com>
Date: Sun, 22 May 2016 23:49:13 +0200
Message-ID: <CAB32U3ZY4hF-VPZEQAwEkrm4YgTpRU_zcTnu_2u9CjnDiPk1=A@mail.gmail.com>
To: www-dom@w3.org
Hi,

Is there a reason why status code of loaded resource is not exposed to
`load` event? (https://www.w3.org/TR/DOM-Level-3-Events/#event-type-load)

I think, it could be very useful to have it, for example in
`UIEvent.detail`.

The use-case I found is with dynamically created `<link>`s (style sheets/
HTML imports). With status code given we could control behavior for 204,
205 etc.

Best Regards,
Tomek Wytrębowicz
https://github.com/tomalec
https://twitter.com/tomalecpl
Received on Monday, 23 May 2016 12:45:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 May 2016 12:45:38 UTC