more follow-up for IE document.contains

R=arv
BUG=

Review URL: https://codereview.appspot.com/8809043