Przeglądaj źródła

Fixed thrown error message.

It was breaking in Firefox. This fix does not affect end result - error
message is correct.
Maksymilian Barnaś 9 lat temu
rodzic
commit
f2ca8ba933

+ 1 - 1
packages/ckeditor5-engine/src/dataprocessor/xmldataprocessor.js

@@ -113,7 +113,7 @@ export default class XmlDataProcessor {
 		const parserError = document.querySelector( 'parsererror' );
 
 		if ( parserError ) {
-			throw new Error( 'Parse error - ' + parserError.querySelector( 'div' ).textContent );
+			throw new Error( 'Parse error - ' + parserError.textContent );
 		}
 
 		const fragment = document.createDocumentFragment();