# File lib/asciidoctor/document.rb, line 834 def set_attribute(name, value) if attribute_locked?(name) false else case name when 'backend' update_backend_attributes apply_attribute_value_subs(value), !!@attributes_modified.delete?('htmlsyntax') when 'doctype' update_doctype_attributes apply_attribute_value_subs(value) else @attributes[name] = apply_attribute_value_subs(value) end @attributes_modified << name true end end