]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blobdiff - sources/core/htmlparser/fragment.js
Update to 4.7.3
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / core / htmlparser / fragment.js
index f696a129144c46110cb76524bbdb670bb3ad92e3..7ef915c023717160be8bbf334a2ab5abd587d4d5 100644 (file)
@@ -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. <a href="#">foo<a href="#">bar</a></a>. (#7894)
+                                               // e.g. <a href="#">foo<a href="#">bar</a></a>. (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)
                                        // <dl><dt>foo<dd>bar</dl>
                                        // <ul><li>foo<li>bar</ul>
                                        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 );