W3C home > Mailing lists > Public > public-html@w3.org > January 2008

Re: img issue: should we restrict the URI

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 25 Jan 2008 11:32:52 -0600
Message-ID: <479A1D44.30401@mit.edu>
To: Jeff Schiller <codedread@gmail.com>
CC: public-html@w3.org

Jeff Schiller wrote:
> At the very least, I would suggest that an image is non-interactive in
> both the user and the user-agent sense.

That suggestion (including the phrasing) would make a lot of sense to me.

> Whether or not script should be allowed to run inside an "image" (like
> SVG) is another question that I would like to bring to the forefront.
> .There might be some arguments to allow scripts to run inside images.

If they were allowed to do this, they would need to be heavily sandboxed (e.g. 
not able to change any location.href values, not able to fire any DOM events on 
things outside the <img>, not able to have any DOM events leave the <img> via 
capture or whatnot, not able to perform network access, etc, etc).  At least I 
assume that's what "non-interactive in the user-agent sense" means.

> But so far I haven't come up with any convincing arguments to allow
> this.  If the author wants some scriptability, they can always use
> <object>

Agreed.

> So can we consider specifying that images are both non-interactive and
> must not be allowed to run scripts?

I would support that.

-Boris
Received on Friday, 25 January 2008 17:32:28 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:29 UTC