Re: XMLC, setEnableXTHMLCompatibilty
Justin Akehurst <[email protected]> Tue, 07 Oct 2003 09:15:15 -0700
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
At 08:28 AM 10/7/2003, you wrote: >On Monday 06 October 2003 19:14, Jacob Kjome wrote: > >> Hmm.... examples please? I hope you don't mean <br></br> and the >> like. That is just plain invalid. And I'm guessing you mean it won't work >> with IE but Mozilla works just fine in almost every case. Please provide >> markup (in an html document attached in a zip file so it isn't inlined in >> the email) which doesn't work for you and explain what exactly about it >> doesn't work. > >No, not so much for br, though it seems that they handle closing tags for >INPUT, IMG, etc just fine. (Not that I want to force those, but all the >things that CAN have close tags seem to need them) > >But what I see happening, is that when I generate XHTML like this: > >--snip-- ><div> > Title > <div class="foo" /> > More content ></div> >Final Content >--end-- > >--snip-- >I get very different results than when I generate > ><div> > Title > <div class="foo" ></div> > More content ></div> >--end-- > >Essentially, the browser is ignoring the implcit end of the second div. Here's a relevant page from WC3 about this. http://www.w3.org/TR/xhtml1/#C_3 -Justin