JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / core / htmlparser.js
index 748887e..acd5ef5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -172,6 +172,12 @@ CKEDITOR.htmlParser = function()
                                if ( ( tagName = parts[ 3 ] ) )\r
                                {\r
                                        tagName = tagName.toLowerCase();\r
+\r
+                                       // There are some tag names that can break things, so let's\r
+                                       // simply ignore them when parsing. (#5224)\r
+                                       if ( /="/.test( tagName ) )\r
+                                               continue;\r
+\r
                                        var attribs = {},\r
                                                attribMatch,\r
                                                attribsPart = parts[ 4 ],\r
@@ -201,7 +207,7 @@ CKEDITOR.htmlParser = function()
                                }\r
 \r
                                // Comment\r
-                               if( ( tagName = parts[ 2 ] ) )\r
+                               if ( ( tagName = parts[ 2 ] ) )\r
                                        this.onComment( tagName );\r
                        }\r
 \r