moxml 0.5.126 → 0.5.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/moxml/version.rb +1 -1
- data/spec/moxml/to_html_spec.rb +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01032e6367e81d2b15512e378e32065aaaeda8e0159ab361b1cce56c853483b6
|
|
4
|
+
data.tar.gz: f7ea3e5da35d715e4c0ee624bd34fa2ed2b0e97114941e19aa623e737935ba8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5738ff3e0b4b905ec4109aa4ec708885d2d901f322ef819bea1e54af264b7494c7f1fd65f58a83545d5a537175657174677970b584ad971b8c850ca3e37e85f1
|
|
7
|
+
data.tar.gz: 346e74335cc99fc6ade2d2502e6c1f628d6f5cf94fe8ac3e3dbe70e54641aff44b7926e0fb0b389ce501ba82633f71c936f1355ce1607ce71bb1c325fb90d265
|
data/lib/moxml/version.rb
CHANGED
data/spec/moxml/to_html_spec.rb
CHANGED
|
@@ -65,6 +65,26 @@ RSpec.describe "Moxml::Document#to_html" do
|
|
|
65
65
|
"<body>\n\t\t<div id=\"a\">\n\t\t\t<p>x</p>",
|
|
66
66
|
)
|
|
67
67
|
end
|
|
68
|
+
|
|
69
|
+
it "nests a LAST block child (engine 1.9.341, leptris#1647)" do
|
|
70
|
+
doc2 = Moxml.new(:leptris).parse_html(
|
|
71
|
+
"<html><head><title>T</title></head><body>" \
|
|
72
|
+
"<div id=\"a\"><p>x</p><span>y</span></div></body></html>",
|
|
73
|
+
)
|
|
74
|
+
out = doc2.to_html(indent: 2)
|
|
75
|
+
skip "engine predates leptris#1647" unless out.include?("<body>\n <div")
|
|
76
|
+
expect(out).to eq(
|
|
77
|
+
"<html>\n " \
|
|
78
|
+
"<head><title>T</title></head>\n " \
|
|
79
|
+
"<body>\n " \
|
|
80
|
+
"<div id=\"a\">\n " \
|
|
81
|
+
"<p>x</p>\n " \
|
|
82
|
+
"<span>y</span>\n " \
|
|
83
|
+
"</div>\n " \
|
|
84
|
+
"</body>\n" \
|
|
85
|
+
"</html>",
|
|
86
|
+
)
|
|
87
|
+
end
|
|
68
88
|
end
|
|
69
89
|
|
|
70
90
|
context "when the binding predates the ride" do
|