One last email at the risk of boring the rest of the list! I think it's just down to you and I now Thierry.

Thierry Koblentz wrote:
Ian,
I'm not saying my approach is better or cleaner I'm just saying that it does
not work the way you describe it.
AFAIK, PPK is "tagging" the external links, isn't? He's looking for an
attribute (not a class BTW), but I'm only parsing the href value.
As I explained in my previous post, the use of "wrapper" is *irrelevant*.
  
Hey Thierry, I'm agreeing with you here. I can see how it works (including the check for '://') and have used similar code myself. I actually think your way is cleaner - and better in a lot of circumstances.

I'm not really talking about the details of the code, my point here is that there is a benefit to adding extra markup (class, rel, type, whatever) beyond it being a _javascript_ hook. PPK is a nice guy but I'm not here to defend his code! Both methods have their place.
Class isn't really presentational. It is to do with the structure of
the document. In a crude way I see id as saying what an element is,
and class saying what general purpose an element has i.e. classifying
it.
    

I'm sorry but I have to strongly disagree on that one  ;)
According to http://www.w3.org/TR/html4/struct/global.html#h-7.5.2
The class attribute has several roles in HTML:

    * As a style sheet selector (when an author wishes to assign style information to a set of elements).
    * For general purpose processing by user agents.
The first is presentational, the second if for describing elements beyond what information HTML alone can impart. That's the way I see it anyway.




******************************************************
The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to