Sign In/My Account | View Cart  
advertisement

Article:
 The Road to XHTML 2.0: MIME Types
Subject: WTF XHTML and createElement
Date: 2005-06-08 14:24:16
From: wewereright1054

Ok, I have been trying to use the createElement function, and all works well until I try to use it for images. Using a Firefox extension I am able to see what the render source is. Basically shows me the image with all the attributes that I had set for it all looks nice. However, it isn't in XHTML format It just closes the tag with out puting the space and / as we are told to for XHTML. Since this is the road that we are going down to how do we solve this problem. WHen in XHTML and the image tag is like HTML 4.0 you get a space under the image, which blows. You get the same for embed tags, so forget using this method for writing in flash movies or images. I guess we will have to stick with document.write, which again blows. Is there a way to override the native code for this function through javascript so it appears correctly. Any other idea's?

Previous Message Previous Message   Next Message Next Message


Sponsored By: