Add contentDocument support for HTMLIFrameElement. Fixes #3808.