Bug 17804 - Handling parameter part of type attribute on the draft
Summary: Handling parameter part of type attribute on the draft
Alias: None
Product: Web Intents
Classification: Unclassified
Component: Web Intents specification (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Greg Billock
QA Contact: This bug has no owner yet - up for the taking
Depends on:
Reported: 2012-07-18 06:03 UTC by Taiju Tsuiki
Modified: 2012-07-20 20:47 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Taiju Tsuiki 2012-07-18 06:03:51 UTC
In latest editor's draft of Web Intents[1],
second example posts an intent with type="text/uri-list" and
third example declares it accepts type="text/uri-list;type=image/*" intent.

But, according to matching section[2],
text/uri-list;type=image/* doesn't match against text/uri-list,
so third example can't accept the intent from second example.

IMO, possible fix is
 - changing "text/uri-list" to "text/uri-list;type=image/" in second example,
 - or, changing the matching algorithm to handle parameter part of type attribute.

[1] http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html#example
[2] http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html#matching-action-and-type-for-delivery
Comment 1 Greg Billock 2012-07-20 20:47:55 UTC
This was technically OK, but a bad example (the second "type" is really a mime type parameter, not another mime type). I've just removed it.