عضو منذ

احدث الأنشطة على التوثيق

اعرض كل النشاط
الصفحة التاريخ تعليق


As far as I can tell, it's not read-only. See and my answer there linking to relevant specs (which seem not to say either way) and tests in Chrome, Firefox, Safari, IE9, IE11, and Edge.


Emphasize that the promise doesn't reject on HTTP errors (SO is filled with fetch code failing to check response.ok), update examples to show (also did PR to fetch-examples repo)

Call out an increasingly-common anti-pattern (seeing it more and more on SO, I think it's being mis-taught in some schools)



Per the current spec (and current implementation in Chrome v68), the event is cancelable and preventDefault prevents the default error in the console