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

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