JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / core / htmlparser.js
index e34fcb2..ac1420d 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
@@ -18,7 +18,7 @@ CKEDITOR.htmlParser = function()
 \r
 (function()\r
 {\r
-       var attribsRegex        = /([\w:]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,\r
+       var attribsRegex        = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,\r
                emptyAttribs    = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};\r
 \r
        CKEDITOR.htmlParser.prototype =\r
@@ -201,7 +201,7 @@ CKEDITOR.htmlParser = function()
                                }\r
 \r
                                // Comment\r
-                               if( ( tagName = parts[ 2 ] ) )\r
+                               if ( ( tagName = parts[ 2 ] ) )\r
                                        this.onComment( tagName );\r
                        }\r
 \r