blob: ffbf0dbfabb6b77d67115cb66db2c2d3e2849709 [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 int nodeType
/// The type of node.
/// This value is one of:
/// [DOCUMENT_TYPE_NODE] if this node is a DocumentType node.
/// @description Checks expected attribute values.
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var x = document.implementation?.createDocumentType('html',
'-//W3C//DTD HTML 4.01//EN', '');
Expect.equals(Node.DOCUMENT_TYPE_NODE, x?.nodeType);