Christian Heilmann

You are currently browsing the archives for the General category.

Archive for the ‘General’ Category

So address tags are rubbish for microformat hCards?

Wednesday, September 27th, 2006

Did I mention that you learn something new every day? I just answered a question on CSS discuss about styling BR elements in andADDRESS element (don’t ask) and got all microformaty by offering spans inside the address with all kind of [link:http://microformats.org/wiki/hcard,hCard] goodness as the solution.

I thought I was in the know as even Tantek used them in his [link:http://tantek.com/presentations/2005/03/elementsofxhtml/,elements of XHTML] presentations. However, [link:http://intranation.com,Bradley Wright,friend colleague] turned around with a smile on his face and told me that ADDRESS is bad choice for a hCard, as when you look at the [link:http://www.w3.org/TR/1999/REC-html401-19991224/,specs of HTML 4.01], you find in the [link:http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#h-7.5.6,ADDRESS section]:

The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document.

Which means it is semantically there to provide a contact option for this document, and not for a physical locationnot for a physical location of a product the web site advertises or an address of someone the article talks about. Brad, of course had this from another person that has too much time to read the specs: [link:http://cackhanded.net/,Mark Norman Francis,friend colleague met muse] as they had argued about that earlier because of an hCard integration in a company property.

So, is this the end of ADDRESS? Seeing that it is an inline elementthat it doesn’t allow for nested paragraphs in HTML 4.01 strict, I always considered it a bad choice for marking up an address anyways.

Update

We were too late with this discussion, actually. [link:http://microformats.org/discuss/mail/microformats-discuss/2005-June/000013.html,Tantek explained the logic of it in 2005 on the microformats list] and it is also [link:http://microformats.org/wiki/hcard-faq#Should_I_use_ADDRESS_for_hCards,part of the hCard FAQ].

Dear me, bad research on my behalf.

[tags]semantics, geek, microformats, html, myths, yahoo, norm, bradleywright[/tags]

Greenpeace target Apple

Wednesday, September 27th, 2006

Greenpeace [link:http://www.greenpeace.org/apple/,released a web site targeted at Apple] to make the company use more eco-friendly materials, create a greener Apple or even offer [link:http://www.dell.com/recycle,recycling facilities like Dell does].

Let’s see if they get sued for using that menu.

I got my laptop stolen yesterday night

Tuesday, September 26th, 2006

During a substandards meeting. I am really really down and annoyed about this, especially as I had half a chapter of the new book and a lot of photos on it that were not on flickr yet. I was also really annoyed that the police expects you to go to the next police station to report things like that yourself as “there are not enough policemen in the area”. The pub is in Covent Garden. If you see someone with a T43 IBM Thinkpad with a “Do you flickr” and a Creative Commons Sticker, just punch him and bring him here.

If you are in California, don\’t miss the Yahoo! hack day

Monday, September 25th, 2006

Yahoo! Hack DayYahoo! Sunnyvale is hosting a [link:http://hackday.org/,Hack Day] on Friday and Saturday (29th/30th of September 2006).

It is a great opportunity to get to know the people behind Yahoo! products and get in-depth training about the [link:http://developer.yahoo.com/yui,YUI] and the other APIs. [link:http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/,Check out the schedule] to see who and what you are going to miss if you cannot go.

Sadly, I cannot go there this time, but maybe the next one…

[tags]Yahoo,hackday,training,convention,yui,javascript,api,mashups[/tags]

Event Handling versus Event Delegation

Sunday, September 24th, 2006

If you ever wondered how flexible web applications with hundreds of objects that need event handling are built, the trick behind it is called “Event Delegation”.

I didn’t come up with it, and it is nothing new either, but as some people seem to get confused when the term crops up, I’ve written a quick example why event delegation helps keeping web apps light and fast.