W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2010

question about number of occurrences of author and content elements (in Widget packaging spec)

From: Ricardo Varela <phobeo@gmail.com>
Date: Fri, 2 Jul 2010 11:56:37 +0800
Message-ID: <AANLkTikaI2n5a1JuE2MrY_6AVWpi7EGQsjk1XDOexhCd@mail.gmail.com>
To: public-device-apis@w3.org, Marcos Caceres <marcosc@opera.com>
hallo all, hallo Marcos,

We have a small question regarding what we interpret may be an
inconsistency in the behaviours for parsing a config file as commented
in the W3C widget packaging spec [1]

According to the spec (latest and also older versions), the
occurrences of some elements (eg: author or content) have to be zero
or one

However, on the algorithm to process a configuration document quoted
below, it states: "If this is not the first author element
encountered, then the user agent must ignore this element and any
child nodes" It just says ignore and doesn't say to consider it as

Isn't this a contradiction in the parsing of the configuration
document? We understand that it should be one of these 2 cases:

a) we allow for more than one instance of author and content and let
the first one take precedence (and therefore the occurrences should be
"zero or more")
b) we allow only one instance of author and content elements (and
therefore the parsing algorithm has got to stop with error on further

Would appreciate some clarification about this, as we want to clarify
what to do for our compliance tests

Thanks a lot in advance!


[1] http://www.w3.org/TR/widgets/

Ricardo Varela  -  http://phobeo.com  -  http://twitter.com/phobeo
"Though this be madness, yet there's method in 't"
Received on Friday, 2 July 2010 03:57:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:21 UTC