[uf-discuss] "type" subproperty in the hCard logo property?
Brian Suda
brian.suda at gmail.com
Fri Nov 3 08:32:25 PST 2006
when you include data as base64, you will use the data:// uri that
URI[1] allows for explict description of the TYPE, so that is where
X2V extracts the TYPE data from.
see http://suda.co.uk/contact/ i have a hidden class="photo" with a data URI:
<img clas="photo" alt="my Gravitar"
src="data:image/png;base64,i.....hejwhjkew" />
from that i can extract the TYPE data "image/png" becomes TYPE=PNG
I hope that makes sense.
-brian
[1] - http://www.ietf.org/rfc/rfc2397.txt
On 11/3/06, Costello, Roger L. <costello at mitre.org> wrote:
> Thanks Brian. No, I don't have an example of where the type
> subproperty is needed. In fact, like you, I saw no need for it with
> hCard (although I can see the need in vcard, where the logo can be
> expressed directly in the vcard as base64). Perhaps there should be a
> mention on the hCard page that logo does not have a type subproperty?
>
> /Roger
>
> -----Original Message-----
> From: microformats-discuss-bounces at microformats.org
> [mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
> Brian Suda
> Sent: Friday, November 03, 2006 11:07 AM
> To: Microformats Discuss
> Subject: Re: [uf-discuss] "type" subproperty in the hCard logo
> property?
>
> from RFC 2426 3.5.3 LOGO Type Definition:
>
> Type special notes: The type can include the type parameter "TYPE" to
> specify the graphic image format type. The TYPE parameter values
> MUST
> be one of the IANA registered image formats or a non-standard image
> format.
>
> because the <img> element doesn't really allow you to nest child
> elements, and since the type attribute is really on available on the
> 'a' element. There is no way to really encode the value. I'm not sure
> exact what purpose it serves in a vCard application anyway.
>
> (i think) X2V will automatically extract the TYPE property from the
> @src string if possible.
>
> Do you have an example of a place you think you NEED a type defined on
> an image?
>
> -brian
>
> On 11/3/06, Costello, Roger L. <costello at mitre.org> wrote:
> > Hi Folks,
> >
> > The vcard specification says that the logo property may have a type
> > subproperty to indicate the format of the logo image (e.g., gif,
> jpeg).
> > However, as I look at the hCard specification it does not show the
> logo
> > property as having a type subproperty. Is that a typo?
> >
> > /Roger
> >
> > _______________________________________________
> > microformats-discuss mailing list
> > microformats-discuss at microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
> >
>
>
> --
> brian suda
> http://suda.co.uk
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
--
brian suda
http://suda.co.uk
More information about the microformats-discuss
mailing list