Browse files

Merge pull request #785 from vsevolod127/master

replace Window.getDocumentRoot() override for safary
  • Loading branch information...
2 parents 9ed4e8c + 6ea2c01 commit d7575373bb084a5075f8aea5679d7b80111ae4c1 @keesbos keesbos committed Oct 12, 2013
Showing with 1 addition and 8 deletions.
  1. +1 −8 library/pyjamas/Window.safari.py
View
9 library/pyjamas/Window.safari.py
@@ -1,9 +1,2 @@
def getDocumentRoot():
- # Safari does not implement $doc.compatMode.
- # Use a CSS test to determine rendering mode.
- JS("""
- var elem = $doc['createElement']('div');
- elem['style']['cssText'] = "width:0px;width:1";
- return parseInt(elem['style']['width']) != 1 ? $doc['documentElement'] :
- $doc['body'];
- """)
+ return doc().body

0 comments on commit d757537

Please sign in to comment.