diff --git a/core/block_svg.js b/core/block_svg.js index e9b709356..4b697eee3 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -115,7 +115,7 @@ Blockly.BlockSvg = function(workspace, prototypeName, opt_id) { // Expose this block's ID on its top-level SVG group. if (this.svgGroup_.dataset) { - this.svgGroup_.dataset.id = this.id; + this.svgGroup_.dataset['id'] = this.id; } /** diff --git a/core/bubble.js b/core/bubble.js index 66163f7dd..3785cb176 100644 --- a/core/bubble.js +++ b/core/bubble.js @@ -288,7 +288,7 @@ Blockly.Bubble.prototype.getSvgRoot = function() { */ Blockly.Bubble.prototype.setSvgId = function(id) { if (this.bubbleGroup_.dataset) { - this.bubbleGroup_.dataset.blockId = id; + this.bubbleGroup_.dataset['blockId'] = id; } };