blob: cc43fc52e605917a6f40db8bed1b42715263f412 [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
*/
import "dart:html";
import "../../testharness.dart";
import "../../../Utils/expect.dart";
const String htmlEL2 = r'''
<a href="&#xD;&#xA; default.aspx?aType=SonDakika&amp;ArticleID=501349&amp;Date=03.03.2008&#xD;&#xA; " >test</a>
''';
void doTest(e) {
var a = document.getElementsByTagName('a')[0];
a.href = a.href;
RegExp reg=new RegExp("%20");
Expect.isFalse(reg.hasMatch(a.href));
a.text="PASS";
}
void main() {
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
window.onLoad.listen(doTest);
}