Mark Tranchant <ma**@tranchant.plus.com> wrote:
Mark Johnson wrote:
How could I, in IE 5+, select a custom element/tag in an XHTML
document?
Let's say there's a <abc></abc> tag?
*\abc { declaration } ?
I don't know.
Take a look at this page:
http://w3future.com/weblog/gems/xhtml2.xml
It is actually coded in XHTML-2.0, with a whole load of workarounds to
get the unrecognized code to work.
The doctype isn't necessary. It's just XML with a stylesheet. But I
don't want to post the files as XML, but as XHTML, with a htm or html
extension. And it doesn't appear that one can select an element which
isn't part of the language using a css which is loaded in. These are
differentiated at run-time, based on browser (actually a functional
test). So there's no telling which css gets loaded, beforehand.
The only alternative is to use span class="". I might just use a
regexp replace to change something like, <abc>, to <span class="abc">.
Or the alternative is to write new templates to take this generated
XML and create a XML substitute for the present HTML pages. But I like
the idea, for the moment, of using HTML that can run on most any
browser, new, old, or otherwise.
Might work.