T
Thomas M. Farrelly
hi,
Earlier, when I made the announcement about tin-tags, a js framework that
I have written, I got a lot of negatives about it not working in other
browsers than Firefox. Which was true and reasonable.
I've removed the hackish approach, and opted for a solution that uses
namespaces. This is a good idea, and gives a very clean implementation. I
also avoid the whole xhtml thing by only allowing tin-tags in xml.
Tin-tags now works in Firefox, Opera, Netscape, Konqueror and Galeon. I
have only tested it with recent versions of those browsers. It is at
www.tin-tags.org.
When attempting to port to IE, I immediately ran across a major obstacle.
Namely that IE does not give out the namespaceURI of an element to
javascript. Earlier I also noticed that IE throws away unrecognized tags
as well ( Konqueror does this too, though it supports namespaces ). The IE
environment is not very hospitable to my project.
I think I have figured out a solution to this, though. It involves using
xslt to extract the namespace URI or prefix. Either translate
<n:tag>
to
<n:tag class="n">
or something like that. Does this make sense? Is it possible to get to the
namespace data using XSLT and move it into js? Does anyone have a script
that populates a document with the namespace information?
Also I consider using either sarissa and/or the cross-browser/xlibrary.
They both seem nice. It would be nice to get some feedback from people who
have experience writing cross-browser websites.
Thanks in advance.
Earlier, when I made the announcement about tin-tags, a js framework that
I have written, I got a lot of negatives about it not working in other
browsers than Firefox. Which was true and reasonable.
I've removed the hackish approach, and opted for a solution that uses
namespaces. This is a good idea, and gives a very clean implementation. I
also avoid the whole xhtml thing by only allowing tin-tags in xml.
Tin-tags now works in Firefox, Opera, Netscape, Konqueror and Galeon. I
have only tested it with recent versions of those browsers. It is at
www.tin-tags.org.
When attempting to port to IE, I immediately ran across a major obstacle.
Namely that IE does not give out the namespaceURI of an element to
javascript. Earlier I also noticed that IE throws away unrecognized tags
as well ( Konqueror does this too, though it supports namespaces ). The IE
environment is not very hospitable to my project.
I think I have figured out a solution to this, though. It involves using
xslt to extract the namespace URI or prefix. Either translate
<n:tag>
to
<n:tag class="n">
or something like that. Does this make sense? Is it possible to get to the
namespace data using XSLT and move it into js? Does anyone have a script
that populates a document with the namespace information?
Also I consider using either sarissa and/or the cross-browser/xlibrary.
They both seem nice. It would be nice to get some feedback from people who
have experience writing cross-browser websites.
Thanks in advance.