# File lib/html/element.rb, line 44 def remove_child(*children_to_remove) if can_have_children? children_to_remove.each do |child| child._parent = nil if @_content.delete(child) end else raise(ArgumentError.exception('node cannot have children')) end end