tenderlove/nokogiri — Issue #625: Builder#comment creates <comment>
Author: Phrogz
Created: 2012-02-28 20:36:30+00:00
State: open

require 'nokogiri'
puts Nokogiri::XML::Builder.new{ |x| x.root{ x.comment('hi') } }.doc.root.to_xml

**Expected:**

**Actual:**

hi

_...or am I misreading http://nokogiri.org/Nokogiri/XML/Builder.html#method-i-comment?_