[thelist] Can you create tags in xhtml?
Toby Mills
toby at tobymills.com
Wed Feb 18 10:21:13 CST 2004
I thought the whole point of XHTML was to bring HTML inline with XML. I
thought one of the big things about XML was its versatility.
So, Er, why cant you add your own elements? Why not just create your own
document definition that inherits / emulates the XHTML doc type. Like what's
done for frames.
So, I did a quick test. I copied an updated the Doc Definition for XHTML as
can be seen at : http://fukc.homeip.net/tlgm2/links/CustomXhtml1-strict.dtd
I then altered the doc type tag to read
<!DOCTYPE html PUBLIC "-//W3C//DTD CUSTOM XHTML 1.0 Strict//EN"
"http://fukc.homeip.net/tlgm2/links/CustomXhtml1-strict.dtd">
And parsed it through the W3 Validator:
http://validator.w3.org/check?uri=http%3A%2F%2Ffukc.homeip.net%2Ftlgm2%2Flin
ks%2Findex.asp
And it validated it, but note it does say:
"This Page Is Valid -//W3C//DTD CUSTOM XHTML 1.0 Strict//EN"
Any thoughts? Could this throw up later problems?
T
-------------------------------
toby mills
web developer & programmer
www.tobymills.com
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Leif Singer
Sent: 18 February 2004 16:03
To: thelist at lists.evolt.org
Subject: Re: [thelist] Can you create tags in xhtml?
> However, I can't think of any reliable method of getting a pointer to
> the collection of divs whose class is editWidgets (from a .js file).
You might want to take a look at the source of
http://www.andreas-waidelich.de/content/labor/getElementsByClassName.html
> So, I thought that barring a solution to that problem, I could simply
> create my own tag to substitute for the div element and do a
> getElementsByTagname on that element. This is in the body of an xhtml
> strict doctype.
The doctype defines the tags, so no, there is no way to have your own
tags im xhtml.
Best regards
Leif Singer
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list