Opened 11 years ago
Last modified 11 years ago
#11340 confirmed Bug
End of the range is enlarged randomly.
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
After call range.enlarge( CKEDITOR.ENLARGE_ELEMENT );
in some cases <\p>
tag is inside enlarged range (dt/core/dom/enlarge.html 'test space 9', currently in git:t/10778)
<p>foo <i><b>[bar]</b></i> </p> -> <p>foo [<i><b>bar</b></i> </p>]
and in some it is not (dt/core/dom/enlarge.html test_enlarge_element5):
<p>Test <b><i>[Enlarge</i> this]</b></p> -> <p>Test [<b><i>Enlarge</i> this</b>]</p>