Skip to content

Commit

Permalink
Fix bad xml element when generating next node (#2098)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RoboErikG committed Oct 31, 2018
1 parent 8f0f1fa commit ecc555b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/xml.js
Expand Up @@ -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();
Expand Down

0 comments on commit ecc555b

Please sign in to comment.