From: Holden Glova Date: 2001-09-06T16:08:02+09:00 Subject: [ruby-talk:20953] Re: Minor cgi.rb question -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 05 Sep 2001 23:14, David Alan Black wrote: > Hello -- > > On Wed, 5 Sep 2001, Tobias Reif wrote: > > W. Kent Starr wrote: > > > A suggestion: use "standard" language for your passed hash > > > keys, say "bgcolor" rather than "H_bcolor". The result would be > > > that anyone reasonably skilled in HTML could look at the Ruby > > > code and gain an immediate understanding of what is happening. > > > > http://www.w3.org/TR/html4/appendix/changes.html#h-A.3.2 > > * Almost all attributes that specify the presentation of an > > HTML document (e.g., colors, alignment, fonts, graphics, etc.) > > have been deprecated in favor of style sheets. The list of > > attributes in the appendix indicates which attributes have been > > deprecated. > > > > http://www.w3.org/TR/html4/index/attributes.html > > Index of Attributes > > Legend: D = Deprecated, L = Loose DTD, F = Frameset DTD > > > > Use CSS. > > > > Ruby libraries should be up to date. > > For writing HTML, though, a tool like the CGI library (or the kind > of HTML writer we've been talking about) is just a convenience, > because it doesn't validate or even impose any mild constraints > based on the DTD (such as limiting choice of elements). - -----------------------------------> Snip good stuff. Correct me if I'm wrong (happens all the time) but doesn't XHTML have XML compliant tags i.e. all tags have a close? If this is the case it should be possible and possibley is beneficial to include validation in a convenient tool like this :) - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7lx+++mF116Lw2cQRAsMKAJ4kanCHab7h3tJGPSdFjZpzQZrglgCcDGP1 xZfKDmaux7YIgFxeQcKIsMY= =X1ra -----END PGP SIGNATURE-----