It's not a problem. I assume you're viewing the DOM tree via Firebug (or something similar)? If so then what you're seeing is a representation of the tree that Firebug is generating.
The concept of XHTML vs HTML (vs XML) is pretty much gone after the (X)HTML is parsed and turned into the DOM tree. There's no need for keeping around the quotes, '/>' or other "delimiters" as each of the elements now exists as a node, not as some textual representation. Karl Rudd On Sun, Feb 24, 2008 at 10:52 AM, timothytoe <[EMAIL PROTECTED]> wrote: > > Not sure this is 100% jQuery's problem. > > I do this: > > $("#logo").html("<img src='images/logosmall.gif' alt='logopic' />"); > > But what lands in the browser is this: > > <div id="logo"><img src="images/logosmall.gif" alt="logopic"></div> > > Interestingly, the single quotes have been converted to double quotes > and the trailing " /" has been lost, which kills my validation. > > Is it jQuery being funny here or the browser itself? What should I do? > > If it helps, my PHP file stats like this: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta name="generator" content="HTML Tidy for Linux/x86 (vers 11 > February 2007), see www.w3.org" /> >