X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser.js;h=acd5ef5efb4752cd1951a2930d9b9883f699c0e2;hb=refs%2Ftags%2Fv3.3.2;hp=a225792722d259427651d9e6a00a565b365debf3;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/htmlparser.js b/_source/core/htmlparser.js index a225792..acd5ef5 100644 --- a/_source/core/htmlparser.js +++ b/_source/core/htmlparser.js @@ -172,6 +172,12 @@ CKEDITOR.htmlParser = function() if ( ( tagName = parts[ 3 ] ) ) { tagName = tagName.toLowerCase(); + + // There are some tag names that can break things, so let's + // simply ignore them when parsing. (#5224) + if ( /="/.test( tagName ) ) + continue; + var attribs = {}, attribMatch, attribsPart = parts[ 4 ], @@ -201,7 +207,7 @@ CKEDITOR.htmlParser = function() } // Comment - if( ( tagName = parts[ 2 ] ) ) + if ( ( tagName = parts[ 2 ] ) ) this.onComment( tagName ); }