blob: 32a6f40406b8bc0e4faf5ae4d9e0dad48bfe3b5c [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.
// @dart = 2.9
/// @assertion final Document ownerDocument
/// The document this node belongs to.
/// @description Checks ownerDocument of nodes created by createElement()
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var d = document.implementation.createHtmlDocument('doc');
Expect.equals(d, d.createElement('text').ownerDocument, 'text');
Expect.equals(d, d.createElement('paragraph').ownerDocument, 'paragraph');
}