X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Felement.js;h=69bacda03f95270bff16e2a48fa12a1862f2af4f;hp=2e9a9c3f95282f7ef7904458eeb085e8556f4ccc;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6 diff --git a/_source/core/htmlparser/element.js b/_source/core/htmlparser/element.js index 2e9a9c3..69bacda 100644 --- a/_source/core/htmlparser/element.js +++ b/_source/core/htmlparser/element.js @@ -114,7 +114,7 @@ CKEDITOR.htmlParser.element = function( name, attributes ) */ element.filterChildren = function() { - if( !isChildrenFiltered ) + if ( !isChildrenFiltered ) { var writer = new CKEDITOR.htmlParser.basicWriter(); CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.call( element, writer, filter ); @@ -171,13 +171,13 @@ CKEDITOR.htmlParser.element = function( name, attributes ) var attribsArray = []; // Iterate over the attributes twice since filters may alter // other attributes. - for( var i = 0 ; i < 2; i++ ) + for ( var i = 0 ; i < 2; i++ ) { for ( a in attributes ) { newAttrName = a; value = attributes[ a ]; - if( i == 1 ) + if ( i == 1 ) attribsArray.push( [ a, value ] ); else if ( filter ) { @@ -188,7 +188,7 @@ CKEDITOR.htmlParser.element = function( name, attributes ) delete attributes[ a ]; break; } - else if( newAttrName != a ) + else if ( newAttrName != a ) { delete attributes[ a ]; a = newAttrName; @@ -197,9 +197,9 @@ CKEDITOR.htmlParser.element = function( name, attributes ) else break; } - if( newAttrName ) + if ( newAttrName ) { - if( ( value = filter.onAttribute( element, newAttrName, value ) ) === false ) + if ( ( value = filter.onAttribute( element, newAttrName, value ) ) === false ) delete attributes[ newAttrName ]; else attributes [ newAttrName ] = value;