[whatwg] WebWorkers and images
bruant at enseirb-matmeca.fr
Fri Jan 7 04:23:51 PST 2011
Le 07/01/2011 12:24, Berend-Jan Wever a écrit :
> Hey all,
> I read that giving WebWorkers access to the DOM is apparently a bad idea:
> However, the page does not mention why. I'd like to know :)
When you say "the DOM", it could mean two things :
- the "document" object (which is bound to what is rendered)
- the DOM APIs (which as far as I'm concern start with the
allows you to create documents)
Based on what is written in the forum, I assume it's the former.
Anyway, I had already created a thread on that topic. Here is the
response given by Ian Hickson
see last response) :
"Since browsers don't have thread-safe DOM implementations, that's
basically a non-starter. It doesn't matter that we aren't offering
access to the same DOM in pages and workers; the actual innards of the DOM
implementations aren't thread safe.
As soon as browsers are able to implement this, I'm sure it will be
added to the spec."
I hope it is the answer to your question.
More information about the whatwg