Add Blockly.utils.dom.XLINK_NS

And fix provide/require mixup.
This commit is contained in:
Neil Fraser
2019-06-07 01:51:53 -07:00
committed by Neil Fraser
parent 848d3a3509
commit 98a98bcce6
12 changed files with 26 additions and 20 deletions

View File

@@ -45,6 +45,12 @@ Blockly.utils.dom.SVG_NS = 'http://www.w3.org/2000/svg';
*/
Blockly.utils.dom.HTML_NS = 'http://www.w3.org/1999/xhtml';
/**
* Required name space for XLINK elements.
* @const
*/
Blockly.utils.dom.XLINK_NS = 'http://www.w3.org/1999/xlink';
/**
* Helper method for creating SVG elements.
* @param {string} name Element's tag name.