|
Re: still too early for XHTML :-((: msg#00040java.enhydra.xmlc
At 01:31 PM 4/9/2003 +0200, you wrote: On Út, 2003-04-08 at 16:30, Jacob Kjome wrote: In order to prove it is a hack, please point out another case where this would be affected? The tags that were defined as empty in HTML such as <br>, <hr>, etc shouldn't be written as <br></br> or anything like that. <br /> is just fine. All the ones where the end tag is optional such as most of the table tags and others should have an end tag written for it anyway and HTML browsers understand that just fine. I was writing end tags for these well before XML ever became the big thing. All the rest of the elements have in HTML4 have their end tags required. So, again, point out which other element this affects. It is only a "hack" to do <script></script> in the sense that you feel you shouldn't have to. However, since XHTML1.0 is the XML'ization of HTML4.01, all HTML4.01 rules apply except those that changed because of XML rules and <script /> is not one of those changed rules. <script></script> is the right thing to do and it is *not* a hack. Doing <script /> breaks the rules set by HTML4.01 so doing anything other than <script></script> is just wrong even though <script /> is valid XML syntax. XHTML1.0 obeys more specific rules than generic XML. Here are all the HTML4.01 elements. Point out another element which might be at issue. I can't think of one. http://www.w3.org/TR/html401/index/elements.html > > 1) document type incorrect, _javascript_ didn't work Why would you want to do that? By definition, there is only one title element in the entire page. document.getTitle()/document.setTitle() or the more generic document.getElementsByTagName("title") and grabbing the single node in the NodeList should suffice. > oo.setOmitDocType(false); Ok, I've never actually compiled my markup as XHTML. So you are saying that without doing anything on your own, you get a doctype set at the top of your page upon output? All my mockups are valid HTML4.01 and have the doctype declaring them as such at the top of each page. However, upon XMLC compilation, the doctype is not stored and I have to add it back in at runtime using the OutputOptions object. So, you are saying that your dynamic output has the XHTML1.0 doctype there by default? And, you must have mistyped because "text/html" is obviously a "content type", not a "doctype". Actually, I hope that "text/html" being set as the content type can be easily overridden to be one of "text/xml", "application/xml", or, ideally, "application/xml+xhtml". In Mozilla, for instance, if you send the content type "text/html", the HTML parser is used. If you send one of the xml content types, then the XML parser is used. It makes a big difference. Behaviors change significantly. For instance, I think Mozilla recognizes, <form id="blah"> when using the XML parser rather than <form name="blah"> with the HTML parser. This is quite important if you are trying to use valid XHTML where the "name" attribute has been deprecated in XHTML1.0 and removed from XHTML1.1 in favor of "id". > > 3) setting of boolean attributes does not work Yes, hopefully soon! > Maybe provide a .zip file with all gathered patches included? Not completely sure, otherwise I'd do it. If someone can point out where this is done, I'll make the change and commit it. > > 6) URLRewriter does not work I think you mean "is *not* an instance of XMLObject", right? Yeah, I wonder why not? I'll have to re-read your message about that. Jake Petr
|
|
| <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 :-((, dcorbin |
| Previous by Thread: | Re: still too early for XHTML :-((, Petr Stehlik |
| Next by Thread: | Re: still too early for XHTML :-((, dcorbin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |