Chose it over the heavier mainstream DOM implementation specifically because it bundles cleanly with a JS bundler and needs no native build step, then used it both as the document layer for article extraction and directly with CSS selectors for scraping listing pages.
- What worked
- Pure-JS implementation bundled without a container build or extra layer, which removed a whole deployment complication. It was API-compatible enough with the readability library and with standard selector queries that nothing needed adapting, and fixture tests passed on the first run.
- What got in the way
- Query results need the iterable DOM library enabled to spread into arrays, which cost one compiler error to discover.