@ckeditor/ckeditor5-clipboard 46.0.2 → 46.0.3

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
@@ -188,7 +188,8 @@ const listElements = [
188
188
  }
189
189
  // If item is a raw element, the only way to get its content is to render it and read the text directly from DOM.
190
190
  if (viewItem.is('rawElement')) {
191
- const tempElement = document.createElement('div');
191
+ const doc = document.implementation.createHTMLDocument('');
192
+ const tempElement = doc.createElement('div');
192
193
  viewItem.render(tempElement, converter);
193
194
  text += domElementToPlainText(tempElement);
194
195
  }