W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: widgets feedback

From: Marcos Caceres <marcosc@opera.com>
Date: Fri, 3 Jul 2009 17:37:34 +0200
Message-ID: <b21a10670907030837t37faa3c5lf243b037b542e80c@mail.gmail.com>
To: timeless@gmail.com
Cc: public-webapps <public-webapps@w3.org>
Hi Josh,

Fixed all editorial comments  below for this third set of comments. If
satisfied with the corrections, please give us
an OK for the DoC :)

On Thu, Jun 18, 2009 at 5:55 PM, timeless<timeless@gmail.com> wrote:
> Date: Thu, Jun 18, 2009 at 6:48 PM
>
> 6:36 PM me: (e.g., a user agent could use an array, or an object, or a
> hash map, etc.).
> drop each "or"

Fixed

> 6:41 PM For each element in the elements list, if the element is one
> of the following:
> A preference element:
> doesn't mention readonly (this might be ok, or maybe not...)

Fixed.

> 6:48 PM 1. For each file name in the default start files table (from
> top to bottom) that has a media type that is supported by the user
> agent:
> 1. Let potential-start-file be the result of applying the rule for
> finding a file within a widget package to file name.
> 2. If potential-start-file is null or in error, ignore this file name
> and move onto the next file name in the default start files table.
> 3. If potential-start-file is a file, then:
> 1. Let widget start file be the value of potential-start-file.
> 2. Let start file content-type be the media type given in the media
> type column of the default start files table.
> 3. Terminate this algorithm and go to Step 9.
>
> I'm worried about the case where a package has two files: index.svg
> and index.xhtml. index.svg is 0 bytes and index.xhtml is a well formed
> xhtml file. The author developed this package using a user agent which
> doesn't support image/svg+xml and things worked well. A user
> unfortunately gets the widget and uses it with a user agent which does
> support image/svg+xml. I'm fairly certain what happens is that this
> process sends the user agent to step 9 with index.svg and the user
> ends up unhappy.

This would be the author's fault for including an empty file. The UA
still does the right thing (it loads the index.svg file and finds it
is not well formed.)

Kind regards,
Marcos



-- 
Marcos Caceres
http://datadriven.com.au
Received on Friday, 3 July 2009 15:38:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:32 GMT