24 points · by dan_sim · 16y ago · 10 comments
Personally, I've come around to the idea that semantic HTML is a joke, because "semantics" can only exist in the context of an agreed-upon semantic context and there's absolutely no way to declare One True Semantic Context, handed down from a committee. There's nothing more or less "semantic" about <cite> vs. <div class="cite">; both may be meaningless, or one may be meaningful but not the other, or both may mean subtly different things, all depending on the context they are in. Nor does wrapping something in a non-existant tag <book> magically make it "non-semantic" or "semantic", until a context is (or is not) added. There's no magic in the tag name; it's just a meaningless string by itself.
Bear in mind that much of the reason I say that the centralized committee can't hand down the One True Context is that even if they do, it is simply a fact that vast swathes of the web will ignore their dictate, and a world in which only 10% of the uses of the "cite" tag are actually "semantically correct" is a world in which the putative semantics are useless. (And if you say "Well, we'll cut it down to a certain subset, like my personal store of documents.", my response is, yes, yes you will, and that's exactly what I mean by a "semantic context".) (And 10% is probably a gross, orders-of-magnitude overestimate.)
Context-free semantics is a contradiction in terms.
1. My markup is cleaner, <contextmenu> vs <div id="contextmenu">, this has implications on my javascript and css (both in terms of speed and cleanliness)
2. API and "microformats" are trivialised, this is of course also dependant on producing parseable (x)html (another decision I really dont understand)
but why on earth is
http://api.flickr.com/services/rest/?method=flickr.people.ge...
different from
http://www.flickr.com/photos/daleharvey
they really dont need to be
That said, I think this approach even sort of mostly works already, albeit with some pain and some JS hackery required. I just want it in the standard. And if we were doing that, I would ask for some events around tags, so I could in the <head> register a "tag creation" listener for, say, <calendar>, and so when that tag is encountered, use JS to populate it with stuff the browser understands.
Alas, I am not the standard maker.
They didn't have a fucking chance of noticing the existence of the Accept header. Microformats are bullshit when you have <link> and HTTP!
At least the putatively 'semantic' <em> and <strong> tags have agreed-upon meanings in the real world: they're synonyms for <i> and <b> -- and noone can argue otherwise in a world where every WYSIWYG toolbar has a B button that insets <strong> tags.
Maybe I'm smoking crack, though. :)
edit: No, the title is false advertising.