|
Re: xhtml compatibility guideline: msg#00054java.enhydra.xmlc
Hi Petr, See my reply to Mark's email first, then read comments below.... At 11:44 AM 12/22/2002 +0100, you wrote: I understand. But since the original static design is in XHTML and is This is not necessary. Like said in my response to Mark's email, standards compliant browser that natively understand XHTML like Mozilla don't care whether the markup is <br /> or <br/> or, for that matter, <br />. It is all valid XML. On the other hand, older browsers that don't natively understand XHTML will handle <br /> better than <br/>. So, there is no reason at all to do anything other than *always* output shortcut tags as <br /> rather than <br/>. A switch could be supplied to output <br/>, but there isn't much of a compelling reason to provide such a thing since <br /> is compatible with all browsers and should cause no issues that I know of in any of them (please point out cases where I am wrong here). 1) emit an extra space before the "/>" of single tags (br, input, select Note that select tags will never be <select />. They *require* and end tag in XHTML (and html, for that matter). There are actually very few tags which are shortcut tags in XHTML. These include <br />, <hr />, <area />, <base />, <basefont />, <col />, <frame />, <img />, <input />, <isindex />, <link />, <meta />, and <param />. Of those, many are either deprecated or only validate in html loose dtd. When using XHTML, you should avoid those tags which aren't valid in html 4.0.1 Strict or XHTML 1.0 strict or XHTML1.1 anyway. 2) change the pregenerated methods buildDocument() and the other one to Yes, the content-type should be user-definable for compatibility with older browsers which don't understand application/xhtml+xml. since XMLC, by default uses text/xml for XHTML, that absolutely needs to be fixed because it is entirely incorrect although, in XMLC's defence, application/xhtml+xml is a recently defined mime-type. Either way, if this was user-defineable, this wouldn't be an issue. Jake
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: xhtml compatibility guideline, Mark Diekhans |
|---|---|
| Next by Date: | Re: xhtml compatibility guideline, Mark Diekhans |
| Previous by Thread: | Re: xhtml compatibility guideline, Mark Diekhans |
| Next by Thread: | Re: xhtml compatibility guideline, Jacob Kjome |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |