Fix get documentElement which caculating size right under webkit based browser.