http://code.google.com/p/pyjamas/issues/detail?id=663

https://developer.mozilla.org/en/DOM/document.compatMode

ok i've just been going through the bugreports and this one looks like
it's kinda important and a bit fundamental.  what happens is that
getClientWidth and a bunch of other functions all dynamically adapt to
read stuff off of body not the documentElement depending on the
compatibility mode.

would anyone like to tackle this?  i've highlighted the relevant
sections from the GWT source code which will need to be cut/paste over
and adapted to python (very easy - remove semicolons, replace "this"
with "self")

then i think many of the ... oh hang on we appear to already have
getDocumentRoot which does 1/2 the job already!

def getDocumentRoot():
    if doc().compatMode == 'CSS1Compat':
        return doc().documentElement
    return doc().body

so all that's needed is to make getClientWidth, getClientHeight and so
on use that (just as in GWT), and then i think Window.ie6.py can be
deleted.

anyone like to do this work?

l.

Reply via email to