W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: [widgets] Widgets URI scheme... it's baaaack!

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>
Message-ID: <op.uuco9izy64w2qv@annevk-t60>
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")


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
Received on Friday, 22 May 2009 21:43:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:53 UTC