Try <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
And XHTML mandates the use of quotation marks not apostrophe's which is probly why its getting converted ~ Big Dog timothytoe 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" /> > > >