[whatwg] URL testing

Michael[tm] Smith mike at w3.org
Sat Nov 24 01:42:33 PST 2012

"Michael[tm] Smith" <mike at w3.org>, 2012-11-24 15:11 +0900:

> Chris Weber <chris at lookout.net>, 2012-11-23 11:39 -0800:
> > Hello, I've been trying to follow Anne's work with the URL spec, and
> > working on using the W3C testharness.js for URL testing.  I have some
> > URL testing running, with still more work to do:
> > 
> > http://www.lookout.net/test/url/
> A lot of these tests -- e.g., test "64" and most all of the "host" tests
> after that -- seem to be failing not because of the specific cases they're
> testing but because of a common failure caused by that fact that the URL
> being tested has no pathname -- and so the expected URL should have no
> pathname -- but the actual URL has a "/" appended.

Anne just now pointed out to me that per the spec, those are not failures
anyway because the expected result is that a "/" gets appended even if the
URL has no path. See step 5 here:


Michael[tm] Smith http://people.w3.org/mike

More information about the whatwg mailing list