public Method

Tag.childless?(xml = false)

Returns non-nil if this tag can contain child nodes.

Source Code

# File action_controller/vendor/html-scanner/html/node.rb, line 303
def childless?(xml = false)
  return false if xml && @closing.nil?
  !@closing.nil? ||
    @name =~ /^(img|br|hr|link|meta|area|base|basefont|
                col|frame|input|isindex|param)$/ox
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.