call out capitalization change since it's important but easy to miss

Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
This commit is contained in:
Chris Willis-Ford 2019-06-18 14:32:00 -07:00 committed by Christopher Willis-Ford
parent ab715901a6
commit edd6aafed0

View file

@ -13,6 +13,8 @@ const mutatorTagToObject = function (dom) {
for (const prop in dom.attribs) { for (const prop in dom.attribs) {
if (prop === 'xmlns') continue; if (prop === 'xmlns') continue;
obj[prop] = decodeHtml(dom.attribs[prop]); obj[prop] = decodeHtml(dom.attribs[prop]);
// Note: the capitalization of block info in the following lines is important.
// The lowercase is read in from xml which normalizes case. The VM uses camel case everywhere else.
if (prop === 'blockinfo') { if (prop === 'blockinfo') {
obj.blockInfo = JSON.parse(obj.blockinfo); obj.blockInfo = JSON.parse(obj.blockinfo);
delete obj.blockinfo; delete obj.blockinfo;