views:

99

answers:

0

Hi

I am using a Javascript called Niceforms.js which makes HTML forms looks pretty. It works fine under the xHTML Transitional Doctype, but I need to build my site using Strict xHTML.

It has a few problems rendering under Strict and I'm fairly sure it's because it isn't putting the trailing slash in a few <img> elements so that they are <img ... />. Here is the code that is creating the <img> tags. How can I get it to output the trailing slash?

el.topLeft = document.createElement('img');
el.topLeft.src = imagesPath + "0.png";
el.topLeft.className = "NFTextareaTopLeft";

I hope this is enough of the code to help. I am not very experienced with Javascript.

The whole script can be downloaded here if it helps... http://www.emblematiq.com/lab/niceforms/download/

Thank you in advance! Pete