Not this, but the sqlite.js-http-vfs wasm implementation[0] (not the current official one) has the browser DOM available as a virtual table. Sample query from the post:
select count(*) as number_of_demos from dom where selector match '.content div.sqlite-httpvfs-demo';