test when the document is an iframe srcdoc