[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: khtmltests/regression/tests/ecma
From: David Faure <faure () kde ! org>
Date: 2004-01-09 14:50:16
Message-ID: 20040109145016.843098FF4 () office ! kde ! org
[Download RAW message or body]
CVS commit by faure:
Fix area.href and area.pathname so that they pass in khtml-cvs and Mozilla
M +1 -1 document.html 1.4
--- khtmltests/regression/tests/ecma/document.html #1.3:1.4
@@ -229,6 +229,6 @@
var area = document.getElementById('myarea');
var url = location.href;
- url = url.replace(/document.html/,'');
var path = url.replace(/file:/,'');
+ path = path.replace(/^\/\//,''); // also remove "//" after file:/, for Mozilla
shouldBe( "area.href", "'"+url+"'" ); // gets completed
shouldBe( "/*IE keeps the file:/...*/ area.pathname", "'"+path+"'" ); // gets completed
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic