On Sep 3, 1:56 pm, Christoph Zwerschke <[email protected]> wrote:
> Simon King schrieb:
>
> > It's a shame that this isn't easier to do. I was under the impression
> > that (at least for "web sites" rather than "web services"), HTML is
> > preferred over XHTML. In fact, I think the default for TG2 is to serve
> > XHTML with a content type of text/html, which seems wrong.
>
> No, it's not wrong (at least for XHTML 1.0); it's a concession to MSIE's
> badness - I think even the latest MSIE 8 doesn't support real XHTML.
>
> http://www.w3.org/MarkUp/2004/xhtml-faq#texthtml
> http://blog.deconcept.com/2004/11/03/why-its-ok-to-send-xhtml-as-text-html/

Oh OK. I had a problem a few days ago where an empty textarea was
being output as <textarea /> rather than <textarea></textarea>.
Firefox was then taking the rest of the page source and displaying it
inside the textarea.

Here's an example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <title>XHTML Test</title>
  </head>
  <body>
    <form action="">
      <p>
        <textarea rows="7" cols="50" />
      </p>
    </form>
  </body>
</html>


In Firefox (3.5.2 on Windows, in case it makes any difference), I see
a textarea containing the closing p, form, body and html tags.

I guess this is because I violated point C.3. in the guidelines you
referenced. In my case I was using the ToscaWidgets textarea, which
generated the minimised version.

Thanks for the links - I won't worry so much about the XHTML in the
future!

Cheers,

Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to