xml clob editor stops working on latest firefox
The following error message is shown in the console whenever attempting to open a clob
TypeError: Argument 1 of Node.appendChild does not implement interface Node.
at
TomalecAceEditorPrototype.createdCallback
https://balerion.cern.ch/bower_components/juicy-ace-editor/juicy-ace-editor.html.js:44:9
Code that triggers the error
TomalecAceEditorPrototype.createdCallback = function() {
var value = "";
Object.defineProperty(this, "value", {
set: function(val){
this.editor && this.editor.setValue( val );
value = val;
},
get: function(){
value = this.editor && this.editor.getValue() || value;
return value;
}
});
// Creates the shadow root
var shadowRoot
if(this.attachShadow && this.getRootNode){
shadowRoot = this.attachShadow({mode:'open'});
} else {
shadowRoot = this.createShadowRoot();
}
// Adds a template clone into shadow root
var clone = thatDoc.importNode(template, true);
this.container = clone.getElementById("juicy-ace-editor-container");
shadowRoot.appendChild(clone);
};
affected browsers
-
Firefox 63 -
Google Chrome