blob: 1acce00ff378f29cd70ae14cde0081112e23049b [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
* @description Stray param elements are not dropped when parsing
import "dart:html";
import "../../testharness.dart";
import "../../../Utils/expect.dart";
const String htmlEL2 = r'''
<p id="result">FAIL</p>
void main() {
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
window.onLoad.listen((e) {
var len = document.getElementsByTagName("param").length;
Expect.equals(1, len);
document.getElementById("result").innerHtml = "PASS";