Re: [whatwg/dom] Proposal: DOM APIs in web workers? (Issue #1217)

that fails at the structured clone level:
  * no callbacks
  * no DOM nodes

IMHO, if DOMParser could validate and produce dummy nodes which are all just *Node* and *ParentNode* interfaces + *Document* with just `querySelector` or other features such as *Xpath* to parse & validate + lightweight search crawling ability, it'd be pretty awesome. *EventListener* or *EventTarget* interface feels like unnecessary to me or these could be added via utilities when and/or if needed, but maybe I am reducing too much the scope of the proposal, yet I don't see postMessaging DOM nodes makes sense, even if it'd be great for DX, but too much magic involved and tons of surprises.

Posting *outerHTML* would already go a long way to me, when or if that's needed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1217#issuecomment-1660101800
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1217/1660101800@github.com>

Received on Tuesday, 1 August 2023 11:12:06 UTC