blob: 0273895fb436314b74d2da41da2e77ed30e8f4ba [file] [log] [blame]
/*
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion final Document ownerDocument
* The document this node belongs to.
* @description Checks ownerDocument of imported node
*/
import "dart:html";
import "../../../Utils/expect.dart";
main() {
IFrameElement x = new IFrameElement();
x.innerHtml = '<iframe class="y">Content Text</iframe>';
var d = document.implementation?.createHtmlDocument('doc');
IFrameElement? x2 = d?.importNode(x) as IFrameElement?;
Expect.equals(d, x2?.ownerDocument);
}