From edd6aafed01d49be35d7298ba2561376991f5b8e Mon Sep 17 00:00:00 2001 From: Chris Willis-Ford Date: Tue, 18 Jun 2019 14:32:00 -0700 Subject: [PATCH] call out capitalization change since it's important but easy to miss Co-Authored-By: Karishma Chadha --- src/engine/mutation-adapter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/mutation-adapter.js b/src/engine/mutation-adapter.js index 8cfac7634..6c3bd84de 100644 --- a/src/engine/mutation-adapter.js +++ b/src/engine/mutation-adapter.js @@ -13,6 +13,8 @@ const mutatorTagToObject = function (dom) { for (const prop in dom.attribs) { if (prop === 'xmlns') continue; 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') { obj.blockInfo = JSON.parse(obj.blockinfo); delete obj.blockinfo;