Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Draft 4 Proposal: "rel" attribute for <Url>
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DeWitt Clinton  
View profile  
 More options Oct 8 2008, 4:54 pm
From: "DeWitt Clinton" <dew...@opensearch.org>
Date: Wed, 8 Oct 2008 13:54:40 -0700
Local: Wed, Oct 8 2008 4:54 pm
Subject: Re: [opensearch:182] Re: Draft 4 Proposal: "rel" attribute for <Url>

See inline.

On Wed, Oct 8, 2008 at 1:36 PM, BrandonLive <bran...@brandonlive.com> wrote:

> >  -1  I'd rather we didn't specify ordering here.   I know that some
> clients
> > today only look at the first Url, but hinting that non-"results" Urls
> should
> > appear later in XML-ordering doesn't avoid the need for the clients to
> use
> > heuristics to pick among different search types.

> I'm also fine with that, but my concern would be for a new implementer
> who wants to target IE8 and puts a "preview" URL ahead of their
> "results" URL will undoubtedly hit unexpected behavior with clients
> like IE7, who will try to use the "preview" URL for the search query.

Description document owners will figure it out quickly, I suspect.  And we
could add a warning to the validator.

> -1  The 'type' attribute expresses this already in a way that is
> consistent
> > with similar elements in HTML and Atom.  How is 'format' better?

> Sorry, when I said "format" I meant "type" - I think we agree here.  I
> was just explaining that something like the existing "application/x-
> suggestions+json" type is wrong, and that it should have the normal
> JSON mime identifier as its "type" and use "rel" to define it usage.
> The current "application/x-suggestions+json" type value in the
> Suggestions spec uses the "type" attribute to define both the format
> and the intended usage, whereas I think we both agree these should be
> seperate.

Ahh, now I understand.  Yes, that makes great sense to me.

So these are equivalent:

  <Url rel="suggestions" type="application/json" template="
http://example.com/suggest?q={searchTerms} />
  <Url type="application/x-suggestions+json" template="
http://example.com/suggest?q={searchTerms} />

While the latter would now be discouraged, many clients will no doubt want
to support it still.  Given that the only place the
"application/x-suggestions+json" appears is the Suggestions 1.0 spec (which,
incidentally, I just branched to create 1.1), it sounds like we can confine
our commentary about backward compatibility there.

If I understand correctly, then objection withdrawn.  +1

> > And here's the meat of my reservation.  I don't want to add complexity
> just
> > because of neat ideas.  If we can document the rel values clearly and
> show
> > some live examples in the real world (like we have with "results" and
> > "suggestions") then lets go for it, otherwise let's pass on adding them
> > now.  (I made a mistake by allowing too many speculative values that no
> one
> > uses for the 'role' attribute on the Query.element.)

> Agreed.  But... I have a project where the "itemlist" example has
> already been implemented :)

Is this something you can share with the group?

Thanks!

-DeWitt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.