Journal tomhudson's Journal: All browser except IE have supported supertags for years .. 7
Most browsers "do the right thing" (and no, you don't need a special doctype declaration or DTD to do this) - they recognize ALL tags between a < and a > as html, and let you style them via css.
So for years, you've had the ability to use tags such as <article>, <section>, <sectionheading>, <footnote>, <book>, <chapter>, <sonata>, <brand>, <ad>, <flying_monkey>, <underpantsgnome>, , <etc>
The only exception, of course, is IE, which uses a fixed set of tags internally, and tag-specific handling code, rather than applying rules to togs in a general way. More here
tag soup, yuck (Score:1)
How ironic, on a web site called "xmlsucks", there's an advocating of HTML being more XML-like.
I think of HTML is its own closed definition of a markup language, so I don't like your idea. I guess internally FF is doing some <ad> to <span class="<some_generated_unique_identifier>ad"> and then similarly to its styles table(s) in memory. A nice going of the extra mile in some sense, but entirely optional, IMO. (And in another sense, detrimental if I've explicitly asked for a strict mode of r
Re: (Score:2)
Also, there is absolutely no reason to invoke the abortion known as namespaces. Namespaces are the result of a lack of imagination. They might be of some use in c++ because of the need to separate different libraries to prevent namespace collison (but this can always be solved in other ways). They simply aren't
bleh (Score:2)
Re: (Score:2)
Public repo for the latest HTML5 JavaScript shiv for IE to recognise and style the HTML5 elements.
My test javascript code was simpler - it just walks the DOM and converts anything between < and > that isn't an html 4x tag into a <div class=>, like this:
<foo id=bar> becomes <div class=foo id=bar>
</foo> becomes </div>, or at your option </div><!-- /foo --> if you want to document your closing divs.
Simple, easy to understand, and it
Re: (Score:2)
Have you shared this particular treewalker? I wouldn't mind having an already developed bit of code for this in case I start using the idea when I build a webapp this summer for myself (where bending the rules for demonstration is much easier to pull off than at the office ;) )
<UnderPantsGnomes> (Score:2)