Google is killing the open web

78 points by kngl


altano

This is well written and has a lot of good history but it’s just not right about one fundamental premise: big tech didn’t wage a war on XML. Developers ran away from XML as fast as they could because it fucking sucked. It went SOAP -> XML -> REST+JSON. Only a tiny minority cared enough to shout “but what about XSLT!” Then the pendulum swung back in the other direction 10% with GraphQL (schemas, types, etc).

in 2015, the WHATWG introduces the Fetch API, purportedly intended as the modern replacement for the old XMLHttpRequest;

“purportedly”? Would the author argue that anything about fetch is less modern than the hacked-together, ridiculous XMLHttpRequest API? I was writing about XHR back in 2005 in the early days and this API was a nightmare. It had the trifecta: terribly named, extremely hard to use, and awful interoperability. No one has touched XHR directly (not through an abstraction) since the 2000s. fetch is absolutely, incontrovertibly the modern replacement. Not purportedly.

prominently missing from the new specification is any mention or methods to manage XML documents, in favor of JSON that instead gets a dedicated document body presentation method;

  1. Of course it’s missing, because fetching XML documents is a teeny, tiny, infinitesimally small use case. There’s nothing “prominent” about this being missing.
  2. Absolutely nothing is stopping you from using fetch for XML. XML isn’t elevated to the platform level of JSON with Response helpers like .json() (https://developer.mozilla.org/en-US/docs/Web/API/Response/json) but why should it be?

Don’t get me wrong, this is a great article. I love it. The author never let go of the XML hype from the 2000s and has intermingled their love of it with their nostalgia for the open web from the 2000s, which is adorable but not entirely accurate. We all killed XML.