@ckeditor/ckeditor5-clipboard 45.2.1 → 45.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -187,7 +187,8 @@ const listElements = [
187
187
  }
188
188
  // If item is a raw element, the only way to get its content is to render it and read the text directly from DOM.
189
189
  if (viewItem.is('rawElement')) {
190
- const tempElement = document.createElement('div');
190
+ const doc = document.implementation.createHTMLDocument('');
191
+ const tempElement = doc.createElement('div');
191
192
  viewItem.render(tempElement, converter);
192
193
  text += domElementToPlainText(tempElement);
193
194
  }