[Bug 26957] Allow sending DOM objects to Workers and expose a DOM (or DOM-like) interface to workers

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26957

--- Comment #13 from Boris Zbarsky <bzbarsky@mit.edu> ---
> querySelector -> Called on the same document.

Unclear from a quick glance.

> NodeList -> Called on the same parent Node.

No.

> .style -> Called on the same Node.

No.

> Because, otherwise, I don't really see a reason to share memory for these
> methods/Objects.

You're welcome to read the implementation.  The source is open.

But as a quick hint, getElementsByTagName caches values so we can keep
returning the object every time, and it does so in a global hashtable (which
has better memory usage characteristics that using multiple per-document
hashtables).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 9 October 2014 14:59:08 UTC