--- date: "2006-01-21T15:02:23Z" title: XHTML Output Support for Ruby 1.8.4 CGI --- <p>Yesterday afternoon I submitted a patch to <code>ruby-core</code> that adds <a href="http://www.w3.org/TR/xhtml1/" title="Read the XHTML 1.0 specification."><acronym title="eXtensible HyperText Markup Language">XHTML</acronym> 1.0</a> support to <a href="http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/" title="Read the online documentation for the Ruby CGI library.">Ruby <acronym title="Common Gateway Interface">CGI</acronym></a>. Rather than explaining the damn thing again, <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7178" title="Read my original, extremely long, post about adding XHTML support to Ruby CGI.">here's the original message I sent</a>, followed by <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7180" title="Read James Britt's reply to my patch.">James Britt's reply</a>, and finally <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7182" title="My follow-up post and patch correcting the XML prolog issue.">my response and updated patch</a>. If you're interested, here's a direct link to the patch:</p> <p><a href="http://diff.pablotron.org/ruby-1.8.4-xhtml_cgi-2.diff" title="XHTML output support for Ruby 1.8.4 CGI.">Download ruby-1.8.4-xhtml_cgi-2.diff</a> (<a href="http://pablotron.org/files/ruby-1.8.4-xhtml_cgi-2.diff.asc" title="OpenPGP signature for the aforementioned patch.">Signature</a>)</p> <p>(<acronym title="For Your Information">FYI</acronym>, still using <a href="http://daringfireball.net/projects/markdown/syntax" title="Nifty little document markup language.">Markdown</a> for these posts, and still loving it).</p>