Ticket #3750: 3705_2.patch

File 3705_2.patch, 1.7 KB (added by Garry Yao, 15 years ago)
  • _source/tests/core/htmlparser/fragment.html

     
    1 ?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    22<html xmlns="http://www.w3.org/1999/xhtml">
    33<head>
    44        <title>CKEDITOR.htmlParser.fragment</title>
     
    1919
    2020        function testParser( input, expected )
    2121        {
    22                 var fragment = CKEDITOR.htmlParser.fragment.fromHtml( input, true ),
     22                var fragment = CKEDITOR.htmlParser.fragment.fromHtml( input, 'p' ),
    2323                        writer = new CKEDITOR.htmlParser.basicWriter();
    2424
    2525                fragment.writeHtml( writer );
  • _source/core/htmlparser/fragment.js

     
    6666                        currentNode = fragment,
    6767                    // Indicate we're inside a <pre> element, spaces should be touched differently.
    6868                        inPre = false,
    69                         returnPoint;
     69                        returnPoint,
     70                        fixForBody = typeof fixForBody == 'undefined'? false : fixForBody;
    7071
    7172                function checkPending( newTagName )
    7273                {
     
    121122
    122123                        // Rtrim empty spaces on block end boundary. (#3585)
    123124                        if ( element._.isBlockLike
    124                                  && inPre )
     125                                 && !inPre )
    125126                        {
    126127
    127128                                var length = element.children.length,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy