1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Hamlit hyphenates only data attributes

This commit is contained in:
Takashi Kokubun 2015-11-13 22:05:41 +09:00
parent 603214c419
commit e482f59b3d

View file

@ -1564,6 +1564,7 @@ HAML
end end
def test_html5_arbitrary_hash_valued_attributes_with def test_html5_arbitrary_hash_valued_attributes_with
skip '[INCOMPATIBILITY] Hamlit supports hyphenation only for data attributes'
assert_equal("<div aria-foo='blip'></div>\n", assert_equal("<div aria-foo='blip'></div>\n",
render("%div{:aria => {:foo => 'blip'}}")) render("%div{:aria => {:foo => 'blip'}}"))
assert_equal("<div foo-baz='bang'></div>\n", assert_equal("<div foo-baz='bang'></div>\n",
@ -1571,6 +1572,7 @@ HAML
end end
def test_arbitrary_attribute_hash_merging def test_arbitrary_attribute_hash_merging
skip '[INCOMPATIBILITY] Hamlit supports hyphenation only for data attributes'
assert_equal(%Q{<a aria-baz='qux' aria-foo='bar'></a>\n}, render(<<-HAML)) assert_equal(%Q{<a aria-baz='qux' aria-foo='bar'></a>\n}, render(<<-HAML))
- h1 = {:aria => {:foo => :bar}} - h1 = {:aria => {:foo => :bar}}
- h2 = {:baz => :qux} - h2 = {:baz => :qux}