Hello!
I have a problem with tDOM. I want to use tDOM to build the XHTML
structure. Assuming I have well-formated xhtml_string and I want to
add new node eg. empty textarea. This is the example:
set doc [dom parse $xhtml_string]
set root [$doc documentElement]
#Add new textarea
$root appendChild [$doc createElement "textarea" textarea_node]
And now I have a problem. While I return xhtml_string asXML parser
remove empty tags eg: <textarea/>
but when I return xhtml_string asHTML parser change well-formated tags
eg <br/> ==> <br>
What should I do in order to receive the well-formated xhtml_string?