I
icogs
If I have an <iframe> element with a src attribute set to
"somedoc.xml" then, as expected, the iframe.contentDocument.doctype
matches the source file.
If I do not specify a src document I get, in Firefox at least,
about:blank loaded which is a vanilla html document.
Say I want to create the contents of the <iframe> document entirely
programmatically and the default html document is not appropriate. Can
I somehow specify the appropriate DOCTYPE ?
I have a work-around whereby I set the src attribute to a skeleton
document, but this is not ideal.
"somedoc.xml" then, as expected, the iframe.contentDocument.doctype
matches the source file.
If I do not specify a src document I get, in Firefox at least,
about:blank loaded which is a vanilla html document.
Say I want to create the contents of the <iframe> document entirely
programmatically and the default html document is not appropriate. Can
I somehow specify the appropriate DOCTYPE ?
I have a work-around whereby I set the src attribute to a skeleton
document, but this is not ideal.