class Phlex::HTML

def _attributes(**attributes)

def _attributes(**attributes)
	if attributes[:href]&.start_with?(/\s*javascript/)
		attributes[:href] = attributes[:href].sub(/^\s*(javascript:)+/, "")
	end
	buffer = +""
	_build_attributes(attributes, buffer: buffer)
	unless self.class.rendered_at_least_once
		Phlex::ATTRIBUTE_CACHE[attributes.hash] = buffer.freeze
	end
	buffer
end