Philip Jägenstedt

Results 1267 comments of Philip Jägenstedt

https://github.com/whatwg/fetch/pull/1862 is what it might look like. It amounts to this JS: ```js Response.prototype.textStream = function() { if (!this.body) { throw new TypeError("body is null"); } return this.body.pipeThrough(new TextDecoderStream()); };...

@lukewarlow yes, that would make sense. I suppose for a very large blob this could be useful to not require a huge string allocation.

> I was trying to determine if in the future we might want this for any of the other consumption methods I had the same question, The only thing I...

On the encoding, matching `text()` means forcing UTF-8. That being said, a mode that respects the encoding in `Content-Type` seems like it would be less surprising than ignoring it. At...

How about just doing what the validator says? Unfortunately, it's not as simple as taking one of the `srcset` URLs and putting into `src`, because it's not necessarily the case...

@Kaiido can you elaborate on the `` case, do you mean if the `` child should be optional?

> assuming you mean `w` instead of `px` in your example Yes, updated. I did use `w` correctly in all my testing, just not when simplifying it into an example...

@annevk can you tell if GoogleBot or Bing has picked up any images you have in `srcset` only? My own changes are much more recent so I can't be confident...

@annevk I see, I assumed the sizes and URLs would be different and you could tell from that.