X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fpiedsjaloux-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fcore%2Fhtmlparser%2Ffragment.js;fp=sources%2Fcore%2Fhtmlparser%2Ffragment.js;h=7ef915c023717160be8bbf334a2ab5abd587d4d5;hp=c06298652af2710c01aa53c3476008288e857d9d;hb=317f8f8f0651488f226b5280a8f036c7c135c639;hpb=1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c diff --git a/sources/core/htmlparser/fragment.js b/sources/core/htmlparser/fragment.js index c062986..7ef915c 100644 --- a/sources/core/htmlparser/fragment.js +++ b/sources/core/htmlparser/fragment.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -61,7 +61,7 @@ CKEDITOR.htmlParser.fragment = function() { if ( node.attributes[ 'data-cke-survive' ] ) return false; - // Empty link is to be removed when empty but not anchor. (#7894) + // Empty link is to be removed when empty but not anchor. (http://dev.ckeditor.com/ticket/7894) return node.name == 'a' && node.attributes.href || CKEDITOR.dtd.$removeEmpty[ node.name ]; } @@ -130,7 +130,7 @@ CKEDITOR.htmlParser.fragment = function() { i--; } else { // Some element of the same type cannot be nested, flat them, - // e.g. foobar. (#7894) + // e.g. foobar. (http://dev.ckeditor.com/ticket/7894) if ( pendingName == currentNode.name ) addElement( currentNode, currentNode.parent, 1 ), i--; } @@ -143,7 +143,7 @@ CKEDITOR.htmlParser.fragment = function() { addElement( pendingBRs.shift(), currentNode ); } - // Rtrim empty spaces on block end boundary. (#3585) + // Rtrim empty spaces on block end boundary. (http://dev.ckeditor.com/ticket/3585) function removeTailWhitespace( element ) { if ( element._.isBlockLike && element.name != 'pre' && element.name != 'textarea' ) { @@ -275,10 +275,10 @@ CKEDITOR.htmlParser.fragment = function() { // If the element cannot be child of the current element. if ( !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] ) { // Current node doesn't have a close tag, time for a close - // as this element isn't fit in. (#7497) + // as this element isn't fit in. (http://dev.ckeditor.com/ticket/7497) if ( currentNode.isOptionalClose ) parser.onTagClose( currentName ); - // Fixing malformed nested lists by moving it into a previous list item. (#3828) + // Fixing malformed nested lists by moving it into a previous list item. (http://dev.ckeditor.com/ticket/3828) else if ( tagName in listBlocks && currentName in listBlocks ) { var children = currentNode.children, lastChild = children[ children.length - 1 ]; @@ -291,7 +291,7 @@ CKEDITOR.htmlParser.fragment = function() { currentNode = lastChild; } // Establish new list root for orphan list items, but NOT to create - // new list for the following ones, fix them instead. (#6975) + // new list for the following ones, fix them instead. (http://dev.ckeditor.com/ticket/6975) //
foo
bar
// else if ( tagName in CKEDITOR.dtd.$listItem && @@ -409,7 +409,7 @@ CKEDITOR.htmlParser.fragment = function() { var currentName = currentNode.name, currentDtd = currentName ? ( CKEDITOR.dtd[ currentName ] || ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) : rootDtd; - // Fix orphan text in list/table. (#8540) (#8870) + // Fix orphan text in list/table. (http://dev.ckeditor.com/ticket/8540) (http://dev.ckeditor.com/ticket/8870) if ( !inTextarea && !currentDtd[ '#' ] && currentName in nonBreakingBlocks ) { parser.onTagOpen( structureFixes[ currentName ] || '' ); parser.onText( text );