# frozen_string_literal: false
attr_reader :name, :prefix, :uri, :attributes, :children
def initialize(name, prefix=nil, uri=nil, attributes={}, children=[])
if children.is_a?(String) or !children.respond_to?(:each)
@attributes[name] = value
other.kind_of?(self.class) and
@attributes == other.attributes and
@children == other.children
attributes.each do |key, value|
rv << " #{Utils.html_escape(key)}=\"#{Utils.html_escape(value)}\""