http://codereview.appspot.com/152136/diff/1/2
File draft/OpenSocial-Gadget-XML.xml (right):
http://codereview.appspot.com/152136/diff/1/2#newcode195
draft/OpenSocial-Gadget-XML.xml:195: MUST return true; otherwise it MUST
return false. Developers SHOULD use
On 2009/11/18 01:04:32, Jon Weygandt wrote:
> Is this small addition in conflict, or redundant with text around line
790?
It wasn't added, just moved it out of the description for the @feature
attribute to the description for the element as a whole. I moved it
because I didn't want to imply that support is based on the name of the
feature alone.
I read it to be redundant with the text around 790 (i.e., not
conflicting) but I think it makes sense to restate it here for clarity.
What makes you think there is a conflict? I'm open to suggestions for
clarifying it.
http://codereview.appspot.com/152136/diff/1/2#newcode500
draft/OpenSocial-Gadget-XML.xml:500: they provide.</t>
On 2009/11/17 18:16:29, Lane wrote:
> This last sentence may be more appropriate for the "Extensions"
section of the
> main spec file. I guess it can't hurt to reiterate here.
It probably makes sense to include it in both places, but I'm afraid
that I'm not sure which section of which file you're referring to. Is
that section something that hasn't been committed yet?
http://codereview.appspot.com/152136/diff/1/2#newcode541
draft/OpenSocial-Gadget-XML.xml:541: containers MUST conform to the
exact version of the specification or
On 2009/11/18 01:04:32, Jon Weygandt wrote:
> For both minor and patch versions, should it be relaxed to state:
"When all
> three (or two) version components are specified containers MUST
deliver a
> version backward compatible with the specified version.". For instance
if 1.1.3
> is requested, then 1.1.3, 1.1.4, 1.5.3 are valid, but 2.0.0 or 1.1.2
is not.
I'm not sure. I'd like to see some discussion of this.
My thought is that, since we're talking about a specification version
and not an implementation version, it's best to be precise. Ideally,
1.1.3, 1.1.3, and 1.5.3 would all be backwards-compatible with 1.1.3,
assuming that the versioning guidelines are followed closely, but in
practice, sometimes mistakes do happen and non-backwards-compatible
changes slip into a minor release. I want to assume that if a gadget
author asks for a very specific spec version, it's probably for a good
reason, and containers shouldn't second-guess it.
On the other hand, it may even be the case that a 1.1.3 implementation
does satisfy the 1.2 spec, or that a 1.1.2 implementation satisfies a
1.1.3 spec, depending on the exact nature of the changes from one spec
version to another, and whether additions are mandatory or optional.
Note that, in cases where the same implementation *does* satisfy
multiple spec versions, containers are free to provide the same
implementation for all of those spec versions. In the Features section,
it says, "Containers MAY use the same implementation to satisfy several
different versions of a Feature, if by doing so they fully comply with
the Feature's specification." Maybe it would be good to generalize that
and move it into this section?
All in all, I was aiming to provide the maximum flexibility for
container implementations, while ensuring predictability for gadget
developers. IMO the best way to do that is by being clear that
containers MUST provide implementations that fully satisfy the spec
version requested by each gadget, but MAY share one implementation for
multiple spec versions, as long as it complies with all of those spec
versions.
http://codereview.appspot.com/152136/diff/1/2#newcode784
draft/OpenSocial-Gadget-XML.xml:784: to Developers when a conflict is
detected.</t>
On 2009/11/18 01:04:32, Jon Weygandt wrote:
> If I "Require opensocial version 2.0" and "Optional opensocial-data
version 1.0"
> will the gadget deploy and render, with hasFeature returning false for
> opensocial-data?
> That's how I would read this, but it is not totally clear.
That was the intent, yes. I'll try to clarify this.
http://codereview.appspot.com/152136/diff/1/2#newcode842
draft/OpenSocial-Gadget-XML.xml:842: <c>views</c>
On 2009/11/17 18:16:29, Lane wrote:
> views is part of core as of 0.9. I know you didn't introduce this
issue, but
> can you fix it please.
Sure. I've also fixed up all of the xrefs to JS APIs in the Features
section to be erefs to the Core-Gadget.xml or Social-Gadget.xml
documents (except gadgets.pubsub, which isn't in any of the spec
documents, so I removed the link).
Someone will need to fix up the rest of the file at some point (I can do
this in a different patch).
http://codereview.appspot.com/152136