Jump to content

using DOM to create xhtml - not keeping singleton tags


ToonMariner

Recommended Posts

Hi there...

 

I am using the DOM to create forms from a form template...

 

I simply load the markup I have and use the do to repeat things like checkboxes etc etc.

 

all is well apart from the fact that once I use $dom->saveHTML() (or saveXML() for that matter) and remove the doctype and html and body tags it auto inserts I am left with input elements that are not closed...

 

I SHOULD get <input type="xxx" />

 

but get <input type="xxx">

 

any help much appreciated...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.