[dojo-contributors] r4522

LiuCougar liucougar at gmail.com
Mon Jun 26 19:40:16 EDT 2006


On 6/27/06, Alex Russell <alex at dojotoolkit.org> wrote:
> On Monday 26 June 2006 3:57 pm, Bill Keese wrote:
> > > On 6/26/06, Bryan Forbes <bryan at reigndropsfall.net> wrote:
> > >> http://trac.dojotoolkit.org/changeset/4522
> > >> Why are we still using document.body?  I thought that we defined
> > >> dojo.html.body() because XHTML Strict documents don't have
> > >> document.body defined.  Is this true, and if so, can we change
> > >> references to document.body to dojo.html.body()?
> > >
> > > LiuCougar wrote:
> > > I prepared a patch for this
> > >
> > > please have a look
> >
> > Liu - Apparently we are supposed to use dojo.doc().body instead of
> > document.body and dojo.html.body()?
>
> I don't think that covers it. In a strict environment dojo.doc().body
> would expand out to document.documentElement.body, which I don't think
> is what we want. dojo.doc() *might* be useful, but perhaps not for
> this.
IMO, dojo.html.body() should be modified to honor
document.documentElement.body, and other places should call
dojo.html.body()

is that what we agree upon? If so, I will proceed to prepare a patch

-- 
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage



More information about the dojo-contributors mailing list