public
Created

Plates bug with nested objects

  • Download Gist
test-21-actual.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<div id="entries">
<div class="entry">
<div class="created">2001-01-01</div>
<div class="user">
<div class="name">John Q. User</div>
<div class="city">Atlanta</div>
<div class="state">GA</div>
</div>
<div class="custid"></div>
</div>
<div class="custid">10101</div>
</div>
</div><div id="entries">
<div class="entry">
<div class="created">2002-02-02</div>
<div class="user">
<div class="name">Jane Q. User</div>
<div class="city">Mobile</div>
<div class="state">AL</div>
</div>
<div class="custid"></div>
</div>
<div class="custid">20202</div>
</div>
</div><div id="entries">
<div class="entry">
<div class="created">2003-0303</div>
<div class="user">
<div class="name">Professor X</div>
<div class="city">Menlo</div>
<div class="state">CA</div>
</div>
<div class="custid"></div>
</div>
<div class="custid">30303</div>
</div>
</div>
test-21.expected.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<div id="entries">
<div class="entry">
<div class="created">2001-01-01</div>
<div class="user">
<div class="name">John Q. User</div>
<div class="city">Atlanta</div>
<div class="state">GA</div>
</div>
<div class="custid">10101</div>
</div>
<div class="entry">
<div class="created">2002-02-02</div>
<div class="user">
<div class="name">Jane Q. User</div>
<div class="city">Mobile</div>
<div class="state">AL</div>
</div>
<div class="custid">20202</div>
</div>
<div class="entry">
<div class="created">2003-0303</div>
<div class="user">
<div class="name">Professor X</div>
<div class="city">Menlo</div>
<div class="state">CA</div>
</div>
<div class="custid">30303</div>
</div>
</div>
test-21.html
HTML
1 2 3 4 5 6 7 8 9 10 11
<div id="entries">
<div class="entry">
<div class="created"></div>
<div class="user">
<div class="name"></div>
<div class="city"></div>
<div class="state"></div>
</div>
<div class="custid"></div>
</div>
</div>
test-21.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
{
"entries": [
{
"custid": 10101,
"created": "2001-01-01",
"user": {
"name": "John Q. User",
"city": "Atlanta",
"state": "GA"
}
},
{
"custid": 20202,
"created": "2002-02-02",
"user": {
"name": "Jane Q. User",
"city": "Mobile",
"state": "AL"
}
},
{
"custid": 30303,
"created": "2003-0303",
"user": {
"name": "Professor X",
"city": "Menlo",
"state": "CA"
}
}
]
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.