This will probably get castigated for being OT - but maybe this deep in a related thread it won't get noticed:)
Has anyone an opinion or a reference as to why the powers that be opted to require the use of class="someclass" for css/css2/XML?
It struck me in my recent work with CGI/XML::Simple
(see, it's Related!:) that 'they' missed a trick here. Instead of:
<html><head><style>
.someclass {
...
}
</style></head><body>
...
<div class="someclass">This text has some class!</div>
...
</body></html>
Wouldn't it have been simpler, cleaner etc. to allow:
<html><head><style>
someclass {
...
}
</style></head><body>
...
<someclass>This text has some class!</someclass>
...
</body></html>
That is to say: Why not allow the browser to render the XML directly in the browser by attaching the css directly to the XML tagged data?
I appreciate that this is a meta discussion.. and do not expect an "answer" as such - but if anyone knows or has an opinion I would be interested to hear it.
|