Hallo Cybaer.
- Wie innerHTML funktioniert ist folglich auch von MS definiert!
Wo wir gerade dabei sind gestatte ich mir eine kleine Frage: gibt es eine Möglichkeit, eine innerHTML–ähnliche Ausgabe des Inhaltes eines Elementknotens ohne Browserinterpretationen zu erhalten?
Beispiel:
<body>
<p>Foo <a href="http://example.org">Bar</a> Baz</p>
</body>
Ausgabe von document.body.innerHTML im Opera, IE und Konqueror (Firefox ist brav):
<P>Foo <A href="http://example.org">Bar</A> Baz</P>
Will ich diesen String nun im X(HT)ML–Umfeld weiterverarbeiten, muss ich ihn zwangsläufig korrigieren. Kann ich mir dies irgendwie ersparen?
Einen schönen Donnerstag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]