incompatibilities/spec/render/attribute_spec.md in faml-0.2.16 vs incompatibilities/spec/render/attribute_spec.md in faml-0.3.0
- old
+ new
@@ -1,6 +1,6 @@
-# [./spec/render/attribute_spec.rb:52](../../../spec/render/attribute_spec.rb#L52)
+# [./spec/render/attribute_spec.rb:48](../../../spec/render/attribute_spec.rb#L48)
## Input
```haml
- h1 = {class: 'c1', id: ['id1', 'id3']}
- h2 = {class: [{}, 'c2'], id: 'id2'}
%span#main.content{h1, h2} hello
@@ -17,11 +17,11 @@
```html
<span class='c1 content c2 {}' id='main_id1_id3_id2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:65](../../../spec/render/attribute_spec.rb#L65)
+# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
## Input
```haml
%span.foo{class: "foo bar"}
```
@@ -35,11 +35,11 @@
```html
<span class='foo bar foo'></span>
```
-# [./spec/render/attribute_spec.rb:75](../../../spec/render/attribute_spec.rb#L75)
+# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
## Input
```haml
%span{class: "x\"y'z"} hello
```
@@ -53,11 +53,11 @@
```html
<span class='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:92](../../../spec/render/attribute_spec.rb#L92)
+# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
## Input (with options={:format=>:xhtml})
```haml
- foo = true
%span{foo: foo, bar: 1} hello
```
@@ -72,11 +72,11 @@
```html
<span bar='1' foo='true'>hello</span>
```
-# [./spec/render/attribute_spec.rb:92](../../../spec/render/attribute_spec.rb#L92)
+# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true, bar: 1}
%span{h} hello
```
@@ -91,11 +91,11 @@
```html
<span foo bar='1'>hello</span>
```
-# [./spec/render/attribute_spec.rb:99](../../../spec/render/attribute_spec.rb#L99)
+# [./spec/render/attribute_spec.rb:91](../../../spec/render/attribute_spec.rb#L91)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -109,11 +109,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:103](../../../spec/render/attribute_spec.rb#L103)
+# [./spec/render/attribute_spec.rb:95](../../../spec/render/attribute_spec.rb#L95)
## Input
```haml
- attrs = { foo: 1, bar: { hoge: :fuga }, baz: true }
%span{attrs} hello
@@ -135,11 +135,11 @@
```html
<span foo='1' bar-hoge='fuga' baz>hello</span>
```
-# [./spec/render/attribute_spec.rb:117](../../../spec/render/attribute_spec.rb#L117)
+# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109)
## Input
```haml
- data = { foo: 1 }
%span{foo: {bar: "x#{1}y"}} hello
@@ -155,11 +155,11 @@
```html
<span foo-bar='x1y'>hello</span>
```
-# [./spec/render/attribute_spec.rb:124](../../../spec/render/attribute_spec.rb#L124)
+# [./spec/render/attribute_spec.rb:116](../../../spec/render/attribute_spec.rb#L116)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -173,37 +173,13 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:157](../../../spec/render/attribute_spec.rb#L157)
+# [./spec/render/attribute_spec.rb:138](../../../spec/render/attribute_spec.rb#L138)
## Input
```haml
-%span{foo: 1
-, bar: 2} hello
-
-```
-
-## Faml (Error)
-```html
-Unmatched brace
-```
-
-## Haml (Error)
-```html
-Unbalanced brackets.
-```
-
-## Hamlit
-```html
-<span bar='2' foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:166](../../../spec/render/attribute_spec.rb#L166)
-## Input
-```haml
%span{data: {foo: 1, bar: 'baz', :hoge => :fuga, k1: { k2: 'v3' }}} hello
```
## Faml, Haml
```html
@@ -215,11 +191,11 @@
```html
<span data-foo='1' data-bar='baz' data-hoge='fuga' data-k1-k2='v3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:174](../../../spec/render/attribute_spec.rb#L174)
+# [./spec/render/attribute_spec.rb:146](../../../spec/render/attribute_spec.rb#L146)
## Input
```haml
%span{data: {foo: 1, bar: 2+3}} hello
```
@@ -233,11 +209,11 @@
```html
<span data-foo='1' data-bar='5'>hello</span>
```
-# [./spec/render/attribute_spec.rb:178](../../../spec/render/attribute_spec.rb#L178)
+# [./spec/render/attribute_spec.rb:150](../../../spec/render/attribute_spec.rb#L150)
## Input
```haml
- data = { foo: 1, bar: 2 }
%span{data: data} hello
@@ -253,11 +229,11 @@
```html
<span data-foo='1' data-bar='2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:186](../../../spec/render/attribute_spec.rb#L186)
+# [./spec/render/attribute_spec.rb:158](../../../spec/render/attribute_spec.rb#L158)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
@@ -268,191 +244,9 @@
<span a='2' b='1'></span>
```
## Hamlit
-```html
-<span a='1' b='1'></span>
-
-```
-
-# [./spec/render/attribute_spec.rb:212](../../../spec/render/attribute_spec.rb#L212)
-## Input
-```haml
-%span{data: {foo: 1,
- bar: 2}}
- %span hello
-
-```
-
-## Faml, Haml
-```html
-<span data-bar='2' data-foo='1'>
-<span>hello</span>
-</span>
-
-```
-
-## Hamlit
-```html
-<span data-foo='1' data-bar='2'>
-<span>hello</span>
-</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:220](../../../spec/render/attribute_spec.rb#L220)
-## Input
-```haml
-%span(foo=1
-
-bar=3) hello
-
-```
-
-## Faml, Haml
-```html
-<span bar='3' foo='1'>hello</span>
-
-```
-
-## Hamlit
-```html
-<span foo='3'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:237](../../../spec/render/attribute_spec.rb#L237)
-## Input
-```haml
-%span(foo bar=1) hello
-```
-
-## Faml, Haml
-```html
-<span bar='1' foo>hello</span>
-
-```
-
-## Hamlit
-```html
-<span = foo>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
-## Input
-```haml
-%span(foo=1 bar='baz#{1 + 2}') hello
-```
-
-## Faml, Haml
-```html
-<span bar='baz3' foo='1'>hello</span>
-
-```
-
-## Hamlit
-```html
-<span bar='baz#{1 + 2}' foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:246](../../../spec/render/attribute_spec.rb#L246)
-## Input
-```haml
-%span(foo=1 bar="ba\"z") hello
-```
-
-## Faml, Hamlit
-```html
-<span bar='ba"z' foo='1'>hello</span>
-
-```
-
-## Haml
-```html
-<span bar='ba"z' foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:246](../../../spec/render/attribute_spec.rb#L246)
-## Input
-```haml
-%span(foo=1 bar='ba\'z') hello
-```
-
-## Faml, Hamlit
-```html
-<span bar='ba'z' foo='1'>hello</span>
-
-```
-
-## Haml
-```html
-<span bar="ba'z" foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:255](../../../spec/render/attribute_spec.rb#L255)
-## Input
-```haml
-%span(foo=1 3.14=3) hello
-```
-
-## Faml (Error)
-```html
-Invalid attribute list (missing attribute name)
-```
-
-## Haml (Error)
-```html
-Invalid attribute list: "(foo=1 3.14=3)".
-```
-
-## Hamlit
-```html
-<span 3.14 foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:259](../../../spec/render/attribute_spec.rb#L259)
-## Input
-```haml
-%span(foo=1 bar=) hello
-```
-
-## Faml (Error)
-```html
-Invalid attribute list (invalid variable name)
-```
-
-## Haml (Error)
-```html
-Invalid attribute list: "(foo=1 bar=)".
-```
-
-## Hamlit
-```html
-<span bar foo='1'>hello</span>
-
-```
-
-# [./spec/render/attribute_spec.rb:271](../../../spec/render/attribute_spec.rb#L271)
-## Input
-```haml
-%span(b=__LINE__
- a=__LINE__)
-
-```
-
-## Faml
-```html
-<span a='2' b='1'></span>
-
-```
-
-## Haml, Hamlit
```html
<span a='1' b='1'></span>
```