> Rimantas Liubertas wrote: > [...] >> Once again >> using XML brings nothing to the table if you use text/html. > > Absolutely untrue. If nothing else, it brings the use of XML tools to > test out your markup. And while people like Hickson don't seem to > understand the importance of that, the fact is that it makes automated > testing of your output *much* easier (rspec_hpricot_matchers, anyone?). > And automated testing is exactly what we should be doing all the time.
So hpricot cannot parse HTML? Interesting… Any parser which is practical to use should be able to parse HTML and tag soup, because truly valid XHTML pages are precious rarity. And no, I do not like idea to produce invalid pages just because that makes testing easier (does it?). > I don't care about names; I care about quality of reasoning. And while > I'm sure most (not all) of the facts cited are accurate, the quality of > reasoning in those articles is extremely low (see the comments to van > Kesteren's article for some nice hole-poking). I do plan to set up some > tests of my own. Well, set them up and see then. >> I've done that five years ago: http://rimantas.com/bits/xhtml-test.php > > What's the point of citing 5-year-old tests? Software -- and standards > -- can change greatly over periods that long. What? Did XHTML 1.0 standard change? Did HTML 4.01 standard change? Nope. Yep, software did change. Still IE does not support XHTML, Mozilla still treats xhtml without namespaces declaration as plain XML, etc. Nothing did change in this regard. So that test page works just like it did five years ago. <…> > > I admit that I am having trouble seeing how the differences in CSS > interpretation would be of any practical significance. Well, just try my test page then and you will see. Put all the elements in your CSS in upper case and "no CSS is applied" will become very significant in practice. > If you put inline JavaScript in your HTML, you deserve any problems you > get. :) It's a stupid thing to do. I agree. Now just look around… Regards, Rimantas -- http://rimantas.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

