|
Re: still too early for XHTML :-((: msg#00044java.enhydra.xmlc
At 08:55 PM 4/9/2003 +0200, you wrote: On St, 2003-04-09 at 15:29, Jacob Kjome wrote: Sure, but that ignores the fact of what XHTML1.0 is. It it a transitional language to bring the HTML4 spec into the world of XML. The workarounds such as adding a space before "/>" and <script></script> are valid things to do since we make the decision to write XHTML compliant pages to gain the benefits of XML, but no browser is XHTML1.0 compliant yet (Mozilla maybe, but it wasn't the original goal). We forsee XHTML browser compliance and want to be there already when it happens. You could make a better argument by stating that XHTML1.1 shouldn't use any hacks or workarounds. The XHTML library in XMLC is useless if it generates web pages that don't work in most browsers. So, be lenient for XHTML1.0 and be strict for XHTML1.1. > point out which other element this affects. It is only a "hack" to do You miss my point. Just be because you feel it is a hack doesn't make it one. I've already explained why it isn't a hack. > Doing <script /> breaks the rules set by HTML4.01 so doing anything Only in the sense that HTML4 probably should declare the end tag as "Optional" rather than "Required". Beyond that, it isn't a bug. It is part of the HTML4 spec of which XHTML1.0 is merely the XML'ized version of, therefore needs to enforce all the rules that HTML4 enforces. Only if </script> were "Optional" could the <script /> syntax be considered correct. I personally don't care. As you might have read in latest message from Opera7 doesn't support XHTML? How so? What behavior do you see? All I want to achieve is to be able to use *unmodified* Enhydra releases me too. > > this wasn't about doctype. Enhydra didn't allow me to include "ID" No, it isn't obvious. I still don't understand what you mean. You are saying that your templates won't compile unless you put an id attribute on the <title> element? Or are you saying that the java code counts on a method like getElementMyTitle() based on <title id="MyTitle"> existing in the markup? I have lots of HTML templates that don't have an ID on the title element. Why would one be required? > Ok, I've never actually compiled my markup as XHTML. So you are I highly doubt that it preserves the original markup. More likely is that it is doing pretty printing or something. I would definitely like to find out if compiling XHTML preserves the doctype or not. David? Richard? Mark? Any confirmation on that? Compiling standard HTML templates certainly doesn't preserved the doctype. > mistyped because "text/html" is obviously a "content type" Well, yes. This makes sense for browsers that don't support XML or XHTML. Mozilla mostly does but then you have to live by the XML parser which probably doesn't understand <form name="">, rather <form id="">....and such. Jake
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: still too early for XHTML :-((, Petr Stehlik |
|---|---|
| Next by Date: | Re: still too early for XHTML :-((, Petr Stehlik |
| Previous by Thread: | Re: still too early for XHTML :-((, Petr Stehlik |
| Next by Thread: | Re: still too early for XHTML :-((, Petr Stehlik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |