- From: Anne van Kesteren <annevk@opera.com>
- Date: Fri, 22 May 2009 23:42:44 +0200
- To: "Arve Bersvendsen" <arveb@opera.com>, "William Edney" <bedney@technicalpursuit.com>
- Cc: "Mark Baker" <distobj@acm.org>, marcosc@opera.com, public-webapps <public-webapps@w3.org>
On Fri, 22 May 2009 21:40:47 +0200, Arve Bersvendsen <arveb@opera.com> wrote: > What Microsoft is doing here is fairly irrelevant. Gecko, Webkit and > Presto all return the absolute URI for my exact example. What you might > be thinking of is getAttribute, which does return the raw contents of > the attribute, but this is, afaict, not what browsers use to actually > resolve the URI. To be clear, there is a difference between the src DOM attribute on the img element and the src content attribute on the img element (in HTML5 terms). I.e. in <img src="test" id="x"> var x = document.getElementById("x") alert(x.src) alert(x.getAttribute("src")) the alerts will give a different result. The first will be a resolved URL and the second will just return the contents of the attribute. -- Anne van Kesteren http://annevankesteren.nl/
Received on Friday, 22 May 2009 21:43:35 UTC