W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Subsequent access to empty string URLs (Was: Base URL’s effect on an empty @src element)

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 29 Aug 2013 22:23:46 +0000 (UTC)
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Message-ID: <alpine.DEB.2.00.1308292206300.27209@ps20323.dreamhostps.com>
Cc: whatwg@lists.whatwg.org
On Wed, 1 May 2013, Leif Halvard Silli wrote:
> 
>   If @src is empty (and there is no base url) a 'subsequent access' via 
> a contextual menu, such as 'Show/Open image' or 'Save/Download image' 
> has no effect in Firefox20, Opera12, IE10. Whereas Safari/Chrome do 
> provide a contextual menu item for those features. (And the UA results 
> are the same - except with regard to Firefox, also if there *is* a base 
> URL.)

If the src="" attribute is empty, then there's no image, so all these UI 
options are kinda pointless no?


>   A special detail is the last paragraph of section '2.5.3 Dynamic 
> changes to base URLS'[1] which implies that a change to the base URL 
> should (even when @src is empty, one must assume, not?) affect the @src 
> URL so that a 'subsequent access' via context menu could be used to 
> e.g. open the image resource set by the base URL. Is it meaningful? 

If the <img src=""> is empty, the base URL has no effect, per spec.


>    What if @cite or @longdesc are empty? Personally, I think it would be 
> simplest to handle at least @longesc - but probably @cite too - the same 
> way that @src is handled. The relevance to subsequent access to empty 
> @src is that @longdesc and @cite tend, from users’ point of view, to be 
> subsequently accessed (e.g. via context menu).

Per spec, longdesc="" has no effect.

The cite="" is explictly called out in the "Dynamic changes to base URLs" 
section and the logic that involves the cite="" attribute doesn't look to 
see if it's empty, so I don't see any particular complication there.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 29 August 2013 22:24:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC