mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user