blob: 37a9168e768cd61856e1a08abc4766c51647fbf5 [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 "../../../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);
window.onLoad.listen(doTest);
}