By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,447 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,447 IT Pros & Developers. It's quick & easy.

XHTML element selection?

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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. Dig around the source and the page
content to see how the author gets <nl>, <line>, <h> and <section> to work.

--
Mark.
Jul 20 '05 #2

P: n/a
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.
Jul 20 '05 #3

P: n/a
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.


abc {declaration}

Just like you would with any other tag.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #4

P: n/a
"Berislav Lopac" <be************@dimedia.hr> 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.


abc {declaration}

Just like you would with any other tag.


Even if it's being stored, internally, which I doubt, these aren't
being made available to the css. I think the only way with this, other
than using a strict XML document, is to use a span and specify the tag
name as a class.
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.