Yup. Nothing to be done about it.

Karl Rudd

On Sun, Feb 24, 2008 at 3:18 PM, timothytoe <[EMAIL PROTECTED]> wrote:
>
>  OK. Since I'm creating so much of the web site on the fly, there's
>  really no way of knowing whether I'm valid or not, is there? I mean
>  it's pretty easy to make my trivial, skeletal html (or php) file
>  valid--there's hardly anything in it!
>
>  I tried to go through all the paths and validate. I guess I'm OK if
>  all I get are warnings that complain about the validator seeing an
>  HTML version of the DOM rather than a XHTML version.
>
>  Oh, and <canvas> is not valid. Nothing to be done about that, right?
>
>
>  On Feb 23, 6:36 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
>  > 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), seewww.w3.org" />
>

Reply via email to