On Tue, Jun 23, 2009 at 10:41 AM, Maciej Stachowiak<m...@apple.com> wrote: > On Jun 22, 2009, at 11:58 PM, Adam Barth wrote: > It would be great to make it easier to write DOM constructors correctly. > Perhaps documenting the pattern and/or introducing a common base class will > work.
A common base class sounds like a good idea. > I am not even sure all of these should have the same behavior, > however. For instance, as I read the Web Workers spec, the lexical global > object may be correct thing to use for the Worker constructor. I looked at the spec briefly. What leads you to think that? It's probably a bug in the spec. > What I'm > dubious of is whether we should store extra data on every DOM object (of > which there are hundreds) to make it easier to write DOM constructors (of > which there are 9). No argument here. :) Adam _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev