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:
parent
603214c419
commit
e482f59b3d
1 changed files with 2 additions and 0 deletions
|
@ -1564,6 +1564,7 @@ HAML
|
|||
end
|
||||
|
||||
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",
|
||||
render("%div{:aria => {:foo => 'blip'}}"))
|
||||
assert_equal("<div foo-baz='bang'></div>\n",
|
||||
|
@ -1571,6 +1572,7 @@ HAML
|
|||
end
|
||||
|
||||
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))
|
||||
- h1 = {:aria => {:foo => :bar}}
|
||||
- h2 = {:baz => :qux}
|
||||
|
|
Loading…
Reference in a new issue