;
var iframe = document.body.appendChild(document.createElement("iframe"));
iframe.onload = function(e) {
  var doc = iframe.contentDocument;
  t.step(function() {
    assert_equals(doc.compatMode, "CSS1Compat");
    assert_equals(doc.contentType, "text/plain");
    assert_equals(doc.doctype, null);
    t.done();
  })
  tD.step(function() {
    assert_equals(doc.childNodes.length, 1, "Document should have 1 child")
    assert_equals(doc.documentElement.tagName, "HTML");
    assert_equals(doc.documentElement