doekman / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

base2.dom.bind( document ) misses document.body #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi,

Title says it all: on my Firefox 3.5b99, even after a bind(document) the
document.body.querySelector() implementation is Mozilla's one.

Actually changing my own code to use document instead of document.body was
a good thing, but other people may also expect "body" to be extended, so I
think this one will resurface one day or another if it's not fixed.

esc0-

Original issue reported on code.google.com by mesco...@gmail.com on 12 Jun 2009 at 9:51

GoogleCodeExporter commented 9 years ago
I'm against this. What about document.documentElement?

The rule is, once a document is bound, *only* elements returned by the 
Selectors API 
are also bound. This fix would break that rule. It's also slightly tricky to 
implement 
because the document body does not exist at the time of binding the document.

I'm setting the status to "WontFix" unless you can convince me otherwise. :)

Original comment by dean.edw...@gmail.com on 21 Jun 2009 at 3:54

GoogleCodeExporter commented 9 years ago
Good for me again (as I said I surrounded the issue anyway).

Actually, still having a way to get native objects is a feature of base2.dom 
that I
used since then, so I'm happy to hear it's here to stay.

But then, it would be useful to write it somewhere ( but well, I know what it 
is to
document stuff, and I can't propose any help for now, so I won't ask )

Original comment by mesco...@gmail.com on 22 Jun 2009 at 3:31