Hacker News new | ask | show | jobs
by amvp 4214 days ago
I'm almost disappointed to see a post like this with no comments - because while it's often quite negative - HN comments often provide me with context and a counterpoint that's really quite useful.

My first reaction is that I quite like it. It's more semantic than dozens of nested divs and spans, and perhaps that's not as useful for machine generated code - for those of us coding html by hand.

1 comments

Is it really more semantic? Consider the first example, starting "<calendar><month name="January"><day>1</day>...".

It looks reasonable from the start, but then you get into real-world issues: why do you need to specify the days? What do you do if you want a 10 year calender? How do you treat February? What are the odds of everyone getting the calender correct, especially when doing it by hand? How do you specify the first day of the week? Some countries start the week on a Sunday and others on a Monday. Can the month name be localized, so that French readers see it as Janvier while the back-end still knows it's January?

People tried really hard to get semantic namespaces working with XML/XHTML, but it didn't really seem to pan out.