N
nilsandi
Hi folks,
I have a problem using Mozilla Firefox 2.0.0.7 and the innerHTML
function.
I am using custom tags in my application, which are to be found and
parsed by some javaScript program, which translates them into proper
HTML.
The contents of the XHTML document is as folows:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:tf >
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml;
charset=utf-8" />
<script type="text/javascript" src="js/transform.js"></script>
</head>
<body onload="transform();">
<tf:form serv="...">
<tf:anchor xpath="..." />
Open account:
<tf:list xpath="..." /><br />
<ul>
<li><a href="...">Link</a></li>
</ul>
</tf:form>
</body>
</html>
In the JavaScript program, I get the contents of the BODY tag as
follows:
node = document.getElementsByTagName('body')[0];
contents = node.innerHTML;
But in this case, an alert(contents); or using firebug delivers the
following as the body's innerHTML:
<tf:form serv="...">
<tf:anchor xpath="..." />
Mandanten öffnen:
<tf:list xpath="...">
<br />
</tf:list>
</tf:anchor>
</tf:form>
<ul>
<li><a href="...">Link</a></li>
</ul>
which is curious, because the <ul>-Tag (the enumeration) is no longer
encapsed by the <tf:form>-Tag. Why?
Note that I have set the xml namespace Prefix, but I can't figure out
what I've done wrong so far.
Anyone got suggestions?
Thank you in advance.
Bye, Nils
I have a problem using Mozilla Firefox 2.0.0.7 and the innerHTML
function.
I am using custom tags in my application, which are to be found and
parsed by some javaScript program, which translates them into proper
HTML.
The contents of the XHTML document is as folows:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:tf >
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml;
charset=utf-8" />
<script type="text/javascript" src="js/transform.js"></script>
</head>
<body onload="transform();">
<tf:form serv="...">
<tf:anchor xpath="..." />
Open account:
<tf:list xpath="..." /><br />
<ul>
<li><a href="...">Link</a></li>
</ul>
</tf:form>
</body>
</html>
In the JavaScript program, I get the contents of the BODY tag as
follows:
node = document.getElementsByTagName('body')[0];
contents = node.innerHTML;
But in this case, an alert(contents); or using firebug delivers the
following as the body's innerHTML:
<tf:form serv="...">
<tf:anchor xpath="..." />
Mandanten öffnen:
<tf:list xpath="...">
<br />
</tf:list>
</tf:anchor>
</tf:form>
<ul>
<li><a href="...">Link</a></li>
</ul>
which is curious, because the <ul>-Tag (the enumeration) is no longer
encapsed by the <tf:form>-Tag. Why?
Note that I have set the xml namespace Prefix, but I can't figure out
what I've done wrong so far.
Anyone got suggestions?
Thank you in advance.
Bye, Nils