Ticket #3750: 3705_2.patch
File 3705_2.patch, 1.7 KB (added by , 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"> 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 4 <title>CKEDITOR.htmlParser.fragment</title> … … 19 19 20 20 function testParser( input, expected ) 21 21 { 22 var fragment = CKEDITOR.htmlParser.fragment.fromHtml( input, true),22 var fragment = CKEDITOR.htmlParser.fragment.fromHtml( input, 'p' ), 23 23 writer = new CKEDITOR.htmlParser.basicWriter(); 24 24 25 25 fragment.writeHtml( writer ); -
_source/core/htmlparser/fragment.js
66 66 currentNode = fragment, 67 67 // Indicate we're inside a <pre> element, spaces should be touched differently. 68 68 inPre = false, 69 returnPoint; 69 returnPoint, 70 fixForBody = typeof fixForBody == 'undefined'? false : fixForBody; 70 71 71 72 function checkPending( newTagName ) 72 73 { … … 121 122 122 123 // Rtrim empty spaces on block end boundary. (#3585) 123 124 if ( element._.isBlockLike 124 && inPre )125 && !inPre ) 125 126 { 126 127 127 128 var length = element.children.length,