blob: 3a9b1e047369cf7784880885ea7a445504fe1a91 [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 "../../../Utils/expect.dart";
const String htmlEL2 = r'''
<map><img id="image" alt="x" height="10" width="10" border="1"></map>
<p>This tests that images are allowed in map elements even in strict mode.</p>
<p id="result">"TEST FAILED</p>
''';
void runTest(e) {
var image = document.getElementById("image");
Expect.isNotNull(image, "image");
var parent = image.parentNode;
Expect.isNotNull(parent, "parent");
Expect.equals("MAP", parent.tagName);
document.getElementById("result").innerHtml = "TEST PASSED";
}
void main() {
document.body.appendHtml(htmlEL2);
window.onLoad.listen(runTest);
}