|
Re: still too early for XHTML :-((: msg#00037java.enhydra.xmlc
See comments below... At 11:08 PM 4/7/2003 +0200, you wrote: On Po, 2003-04-07 at 19:37, Jacob Kjome wrote: When I say that it should be <script><script> and you say "but <script /> is XHTML compatible" we are arguing two different things. I agree, <script /> is legal XML syntax and there is nothing in the XHTML1.0 spec that I can see that explicitly says it can't be used this way. However, the HTML4.01 spec, of which XHTML1.0 is an XML'ized version, declares that <script> tags are required to have an </script> end tag. Other than having to follow various XML rules, the only real change between HTML4 and XHTML1.0 are that the Empty elements in HTML4 need to have " />" added to them and there is no more attribute minimization. So, yes, XHTML1.0 *is* HTML4.01 with XML rules applied. The benefit of this is all the benefits you get from XML. Of course the XHTML1.1 spec goes further and allows for a lot more flexibility such as inventing your own elements with your own behaviors. XHTML1.0 was a stepping stone meant to get people using XML syntax while still proving for backward compatibility with HTML. And that is the key "backward compatibility". If <script></script> and <script /> are both legal XHTML, but the latter is not backward compatible with browsers that only understand HTML, then we should be using <script></script>. We have everything to gain and nothing to lose. Where is the harm? This one's a no-brainer. Let me list all the XHTML problems I encountered so far, IIRC: Is this an XMLC issue or an Enhydra framework issue? How do you set the doctype? i set mine like this... first, grab a reference to the default output options of the document and then do... oo.setOmitDocType(false); oo.setPublicId("-//W3C//DTD HTML 4.01 Transitional//EN"); oo.setSystemId("http://www.w3.org/TR/html401/loose.dtd"); Then I pass the output options object to the dom writer. XMLC doesn't do this automatically, so how could you get the wrong doctype when you set it yourself?...which is why I think this is an Enhydra issue, not an XMLC issue. Maybe you can help me understand? 3) setting of boolean attributes does not work Yep, definitely need this patched! Did you provide this patch (and others) to David or Richard? I could also apply them, but I'd feel much more comfortable having one of them do it. Maybe provide a .zip file with all gathered patches included? and send to the list on this thread. 4) single quotes are converted to ' (IE doesn't understand) Like I said in my email last night, the fix for this is to use ' instead of ' since the latter only appeared in XML 1.0 and not HTML. I tested the following and it worked perfectly in both Mozilla and IE6... <a href="" world!');">Hello World</a> Again, since both entities are perfectly compatible with XHTML, but only ' works with browsers that only understand HTML, we should use the backward compatible one. Again, we have everything to gain and nothing to lose by doing this. See: http://www.w3.org/TR/xhtml1/#C_16 5) <script /> is not understood by IE/Opera Already addressed this above. We should definitely use <script></script>. 6) URLRewriter does not work What was the issue with this one? I don't remember. I reported all problems and submitted patch for 1 and 2 and suggested http://www.w3.org/TR/xhtml1/#why And that is just for XHTML1.0. XHTML1.1 is even more flexible, although less backward compatble and should only be used when you know your audience are using browsers which are XHTML compatible. Most are not. Mozilla mostly is, but even it has a few issues with strict XHTML (when served with the application/xml+xhtml or text/xml content types). Petr Jake _______________________________________________
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | XMLC patterns and FAQ, David Li |
|---|---|
| Next by Date: | Re: still too early for XHTML :-((, Petr Stehlik |
| Previous by Thread: | Re: still too early for XHTML :-((, David Corbin |
| Next by Thread: | Re: still too early for XHTML :-((, Petr Stehlik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |