Ticket #3744: 3744.patch
File 3744.patch, 1.8 KB (added by , 16 years ago) |
---|
-
_source/core/htmlparser/fragment.js
283 283 if ( candidate == currentNode ) 284 284 currentNode = currentNode.parent; 285 285 } 286 else if ( pendingInline.length > index ) 286 287 // Check if there is any pending tag to be closed. 288 for ( ; index < pendingInline.length ; index++ ) 287 289 { 288 // If we didn't find any parent to be closed, let's check the 289 // pending list. 290 for ( ; index < pendingInline.length ; index++ ) 290 // If found, just remove it from the list. 291 if ( tagName == pendingInline[ index ].name ) 291 292 { 292 // If found, just remove it from the list. 293 if ( tagName == pendingInline[ index ].name ) 294 { 295 pendingInline.splice( index, 1 ); 293 pendingInline.splice( index, 1 ); 296 294 297 // Decrease the index so we continue from the next one. 298 index--; 299 } 295 // Decrease the index so we continue from the next one. 296 index--; 300 297 } 301 298 } 302 299 }; -
_source/tests/core/htmlparser/fragment.html
163 163 '<p><br />text</p>' ); 164 164 }, 165 165 166 167 166 test_ticket_3585_2 : function() 168 167 { 169 168 testParser( '<b>inline </b>\n<p>paragraph\t\r\n</p>\t\r\n', 170 169 '<p><b>inline </b></p><p>paragraph</p>' ); 171 170 }, 172 171 172 test_ticket_3744 : function() 173 { 174 testParser( '<div><b><font><span>A</font></span></b></div><div>X</div>', 175 '<div><b><font><span>A</span></font></b></div><div>X</div>' ); 176 }, 177 173 178 name : document.title 174 179 }; 175 180 })() );