My problem isn't "invalid" HTML - it is "perfectly valid HTML but which doesn't render the way you expect in browser X, Y Z or perm any N from M".
Ditto Javascript which is perfectly valid but which doesn't work the way you expect in browser X, Y, Z or perm any N from M. Or CSS which is perfectly valid but which doesn't work the way you expect in browser X, Y, Z or perm any N from M. Or some combination of HTML, JavaScript or CSS which doesn't work in that particular combo in browser X, Y, Z or perm any N from M. I had thought that these issues might have been resolved at some point in the last 20 years, but sadly things really aren't much better today than they were then. In some cases worse, because the tools techniques also assume that things have improved, when they haven't... lulling you into a false sense of security. -----Original Message----- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Berend de Boer Sent: Tuesday, 7 June 2011 09:23 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] FW: Web development >>>>> "Jolyon" == Jolyon Smith <jsm...@deltics.co.nz> writes: Jolyon> The question is, what tool do you use to create the code Jolyon> that ends up emitting it, if you don't emit it directly Jolyon> yourself ? There are many techniques but a simple one is using something like TXMLWriter, see here http://www.berenddeboer.net/delphi Jolyon> The problem I (personally) have with HTML is that it has Jolyon> been co-opted into a role for which it was never Jolyon> originally designed. It is a document markup language Jolyon> that has been strong armed into a role as a UI Jolyon> presentation technology. In many cases it is far more helpful to really see this as emitting document markup, with css for styling and javascript for progressive enhancement. Don't bring your Delphi habits over, you need to look at HTML technology very differently. >> But on the specifics of checking your HTML: check the W3C >> validator service. Jolyon> Again, this is "after the fact" debugging. Jolyon> I don't have to submit my Pascal code to the P3C validator Jolyon> service to check it's validity. If you order your win32 calls wrong, what happens then? Where is your win32 call validator? But see above, using a tool like TXMLWriter you can make sure you invalid HTML is detected immediately, although at run-time. -- All the best, Berend de Boer ------------------------------------------------------ Awesome Drupal hosting: https://www.xplainhosting.com/ _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe