Fix bad xml element when generating next node

Fixes #2096

We were creating a text node to wrap any block connected to
next when we should have just been attaching the generated dom.
This commit is contained in:
Erik Pasternak
2018-10-30 15:09:08 -07:00
parent 8f0f1fa9a5
commit f17c147290

View File

@@ -261,8 +261,7 @@ Blockly.Xml.blockToDom = function(block, opt_noId) {
var nextBlock = block.getNextBlock();
if (nextBlock) {
var container = Blockly.Xml.utils.createElement('next');
container.appendChild(Blockly.Xml.utils.createTextNode(
Blockly.Xml.blockToDom(nextBlock, opt_noId)));
container.appendChild(Blockly.Xml.blockToDom(nextBlock, opt_noId));
element.appendChild(container);
}
var shadow = block.nextConnection && block.nextConnection.getShadowDom();