Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.3.2
[ckeditor.git]
/
_source
/
core
/
htmlparser
/
fragment.js
diff --git
a/_source/core/htmlparser/fragment.js
b/_source/core/htmlparser/fragment.js
index
ad1c93e
..
d31b050
100644
(file)
--- a/
_source/core/htmlparser/fragment.js
+++ b/
_source/core/htmlparser/fragment.js
@@
-108,9
+108,9
@@
CKEDITOR.htmlParser.fragment = function()
}
\r
}
\r
\r
}
\r
}
\r
\r
- function sendPendingBRs()
\r
+ function sendPendingBRs( brsToIgnore )
\r
{
\r
{
\r
- while ( pendingBRs.length )
\r
+ while ( pendingBRs.length - ( brsToIgnore || 0 ) > 0 )
\r
currentNode.add( pendingBRs.shift() );
\r
}
\r
\r
currentNode.add( pendingBRs.shift() );
\r
}
\r
\r
@@
-274,6
+274,7
@@
CKEDITOR.htmlParser.fragment = function()
}
\r
\r
checkPending( tagName );
\r
}
\r
\r
checkPending( tagName );
\r
+ sendPendingBRs();
\r
\r
element.parent = currentNode;
\r
element.returnPoint = returnPoint;
\r
\r
element.parent = currentNode;
\r
element.returnPoint = returnPoint;
\r
@@
-391,7
+392,8
@@
CKEDITOR.htmlParser.fragment = function()
// Parse it.
\r
parser.parse( fragmentHtml );
\r
\r
// Parse it.
\r
parser.parse( fragmentHtml );
\r
\r
- sendPendingBRs();
\r
+ // Send all pending BRs except one, which we consider a unwanted bogus. (#5293)
\r
+ sendPendingBRs( !CKEDITOR.env.ie && 1 );
\r
\r
// Close all pending nodes.
\r
while ( currentNode.type )
\r
\r
// Close all pending nodes.
\r
while ( currentNode.type )
\r