SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    vevent microformat problem

    heya guys - I am implementing the use of vevent microformat on my website and just wanted to check that this was the correct way to implement them - I came into a problem using abbr as provided in the creator as of cause it is not supported in IE and it makes hiding the end date tricky.

    should I go for <span class="dtend" title="20060720">20 July 2006</span> or <span class="dtend"><abbr title="20060720">20 July 2006</abbr><span>

    I am not sure how the microformats will like the nested abbr in there!?!?

    Hope someone can help :>

    Thanks to anyone who does!

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What exactly is vevent microformat? I haven't really heard of such a tool before, but I'm thinking that there has to be a better way to achieve what you need.

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The spec says that:
    If an <abbr> element is used for a property, then the 'title' attribute of the <abbr> element is the value of the property, instead of the contents of the element, which instead provide a human presentable version of the value. This specification recommends that such <abbr> elements be used for the following iCalendar properties:
    • DTSTART, DTEND, DURATION, RDATE, RRULE
    ...thus you either have to use
    HTML Code:
    <span class="dtend">20060720</span>
    or
    HTML Code:
    <abbr class="dtend" title="20060720">20 July 2006</abbr>
    HTH.
    Simon Pieters

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought that would be the answer - which is a bugger because of IE's implementation of the abbr element.

    bit of a hack but I have had to go for
    HTML Code:
    <span class="eventEnd"><abbr class="dtend" title="20060625">25 June 2006</abbr></span>
    so that we can hide the end date in IE grrrrrrrrrrrrrr!

    Thanks for the advice.

    and if you want to get into microformats have a look at www.microformats.org ;>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •