class Phlex::SGML

def tag(name, ...)

def tag(name, ...)
	normalized_name = case name
		when Symbol then name.name.downcase
		when String then name.downcase
		else raise Phlex::ArgumentError.new("Expected the tag name as a Symbol or String.")
	end
	if normalized_name == "script"
		raise Phlex::ArgumentError.new("You can’t use the `<script>` tag from the `tag` method. Use `unsafe_tag` instead, but be careful if using user input.")
	end
	if registered_elements[normalized_name]
		public_send(normalized_name, ...)
	else
		raise Phlex::ArgumentError.new("Unknown tag: #{normalized_name}")
	end
end