# [old\_attributes\_spec.rb:43](/spec/hamlit/engine/old_attributes_spec.rb#L43) ## Input ```haml %span{ class: '}}}', id: '{}}' } }{ ``` ## Output ### Haml ```html Haml::SyntaxError: (haml):1: syntax error, unexpected tSTRING_DEND, expecting ')' ...l, class: ')}>}}', id: '{}}' } }{\n";;_erbout ... ^ (haml):1: unterminated regexp meets end of file ``` ### Faml ```html Faml::Compiler::UnparsableRubyCode: Unparsable Ruby code is given to attributes: class: ' ``` ### Hamlit ```html }{ ``` # [old\_attributes\_spec.rb:132](/spec/hamlit/engine/old_attributes_spec.rb#L132) ## Input ```haml .foo{ class: ['bar'] } .foo{ class: ['bar', 'foo'] } .foo{ class: ['bar', nil] } .foo{ class: ['bar', 'baz'] } ``` ## Output ### Haml, Hamlit ```html
``` ### Faml ```html ``` # [old\_attributes\_spec.rb:211](/spec/hamlit/engine/old_attributes_spec.rb#L211) ## Input ```haml / wontfix: Non-boolean attributes are not escaped for optimization. - val = false %a{ href: val } - val = nil %a{ href: val } / Boolean attributes are escaped correctly. - val = false %a{ disabled: val } - val = nil %a{ disabled: val } ``` ## Output ### Haml, Faml ```html ``` ### Hamlit ```html ``` # [old\_attributes\_spec.rb:236](/spec/hamlit/engine/old_attributes_spec.rb#L236) ## Input ```haml %a{title: "'"} %a{title: "'\""} %a{href: '/search?foo=bar&hoge=