blob: 7d8a94e24566ac7cc6b3d8696319ea20d0d2a0c4 [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.
*/
/**
* @description createElement('a:b') in XML
*/
import "dart:html";
import "../../testcommon.dart";
main() {
var doc = new DomParser()
.parseFromString('''
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
</head>
<body>
</body>
</html>
''', 'text/xml');
var got = doc.createElement('a:b').localName;
var expected = 'a:b';
shouldBe(got, expected);
}