mirror of
				https://gitlab.gnome.org/GNOME/libxml2.git
				synced 2025-10-24 13:33:01 +03:00 
			
		
		
		
	For https://bugzilla.gnome.org/show_bug.cgi?id=681822 Regardless if the option HTML_PARSE_NOBLANKS is set or not, blank nodes are removed from a HTML document, for example: <html> <head> <title>This is a test.</title> </head> <body> <p>This is a test.</p> </body> </html> is read as: <html><head><title>This is a test.</title></head><body> <p>This is a test.</p> </body></html> This changes the default behaviour but the old behaviour is available as expected when using the parser flag HTML_PARSE_NOBLANKS Based on original patch from Igor Ignatyuk <igor_ignatiouk@hotmail.com> * HTMLparser.c: change various places in the parser where ignorable_space SAX callback was called without checking for the parser flag preference * xmllint.c: make sure we use the new flag even for HTML parsing * result/HTML/*: this modifies the output of a number of tests
		
			
				
	
	
		
			25 lines
		
	
	
		
			393 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			393 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
 | |
| <html>
 | |
| <head>
 | |
| <title>gnome-xml push mode bug</title>
 | |
| </head>
 | |
| <body>
 | |
| 
 | |
| <table border="4">
 | |
|   <tr>
 | |
|     <td bgcolor="white">
 | |
| 	Foo1
 | |
| 	<table border="4">
 | |
| 	  <tr>
 | |
| 	    <td>Foo2<p></p>
 | |
| <p></p>
 | |
| </td>
 | |
| </tr>
 | |
| </table>
 | |
|     </td>
 | |
|     <td bgcolor="blue">Foo3</td>
 | |
|    </tr>
 | |
|   </table>
 | |
|   </body>
 | |
| </html>
 |