You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm the error below occurs with both normal html and svg element with comment node inside.
The reason is this._model.val("tagname") returns undefined.
Element.prototype.getDom = function() {
var attr_name, attr_value, child, dom, i, setClasses, that, _i, _len, _ref, _ref1;
this._checkForModel();
if (this._dom == null) {
//added support for svg elements using document.createElementNS
var svg = this._model.val("tagname").match(/g|svg|rect|line|path|ellipse|text|tspan|defs|symbol|use|linearGradient|pattern/g);
if (svg != null) {
this._dom = document.createElementNS('http://www.w3.org/2000/svg', this._model.val("tagname"));
}
else {
this._dom = document.createElement(this._model.val("tagname"));
}
The text was updated successfully, but these errors were encountered:
I have the exisiting dom I want to sync.
I can confirm the error below occurs with both normal html and svg element with comment node inside.
The reason is this._model.val("tagname") returns undefined.
The text was updated successfully, but these errors were encountered: