Claude Pache (2014-01-13T13:47:59.000Z)
Le 13 janv. 2014 à 11:45, Anne van Kesteren <annevk at annevk.nl> a écrit :

> 
>  url.toString() == url2.toString()
> 

Experiences on latest versions of Firefox and Safari: `url.toString()` and `url.valueOf()` give me `"[object URL]"`. I expected to obtain an equivalent of `url.href`. I haven't found mention of `toString` or `valueOf` in the WHATWG URL spec (http://url.spec.whatwg.org/), although I may have missed the feature. Was there an oversight?

—Claude
forbes at lindesay.co.uk (2014-01-15T15:41:17.755Z)
>  `url.toString() == url2.toString()`

Experiences on latest versions of Firefox and Safari: `url.toString()` and `url.valueOf()` give me `"[object URL]"`. I expected to obtain an equivalent of `url.href`. I haven't found mention of `toString` or `valueOf` in the WHATWG URL spec (http://url.spec.whatwg.org/), although I may have missed the feature. Was there an oversight?