Questions tagged [innerxhtml]

innerXHTML is a glorified DOM read/writer. innerXHTML reads the document node tree, returning a text string of markup to the document's equivalent. Issues related with this can be tagged with [innerXHTML] .

innerHTML utilises existing functionality, all supported by the W3C, to read and write to the DOM. In doing so, innerXHTML gains all the benefits of innerHTML without the baggage; speed and ease of use, whilst keeping within the boundaries of global standardisation.

innerXHTML is not a document copier; it does not fetch exactly what the document contains, character for character in a zombie-like fashion

Sample

 var container = document.getElementById('container');
 var code = innerXHTML(container);

Source:

innerHTML Reference

2 questions
1
vote
2 answers

Getting jQuery to work with another library (XML parsing)

We are using jQuery to generate an XML fragment and then convert it to a string using the html() function. But as we just found out, and if anyone doesn't know, the html() JavaScript function as implemented in IE is broken, broken, broken.…
Shaggy Frog
  • 27,575
  • 16
  • 91
  • 128
0
votes
1 answer

Problem with innerXhtml and onclick attribute

In the XHTML page i have this div:

List shape :

Subsequently incorporated within the div an input element via javascript using the library innerXhtml. var paper =…
LuckyStarr
  • 1,468
  • 2
  • 26
  • 39