blob: 3232264ac49bb074abb4aaf846bbf5fd85859c3f [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 List<Element> children
/// List of the direct children of this element.
/// @description Checks that change to children is reflected in the element
import "dart:html";
import "../../../Utils/expect.dart";
main() {
IFrameElement x = new IFrameElement();
x.append(new SpanElement());
x.append(new SpanElement());
x.children[0].text = 'foo';
x.children.add(new Element.html('<span>bar</span>'));
'<iframe><span>foo</span><span>bar</span></iframe>', x.outerHtml);