1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-06 11:41:14 +03:00
Daniel Veillard f933c89813 Keep non-significant blanks node in HTML parser
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
2012-09-07 19:32:12 +08:00
2012-07-11 15:21:12 +08:00
2012-08-10 10:00:18 +08:00
2012-07-23 14:24:27 +08:00
2012-08-13 17:54:20 +08:00
2009-08-24 19:47:00 +02:00
2012-08-10 10:00:18 +08:00
2012-08-10 10:00:18 +08:00
2012-05-18 15:41:31 +08:00
2010-03-10 10:35:56 +01:00
2012-08-17 11:59:01 +08:00
2012-08-13 16:57:30 +08:00
2012-04-02 15:45:13 +08:00
2009-10-06 18:38:15 +02:00
2012-05-10 20:24:00 +08:00
2012-03-16 15:12:25 -04:00
2012-05-07 15:23:25 +08:00
2012-08-13 12:40:53 +08:00
2012-08-27 05:08:54 -04:00
2012-09-04 12:05:17 +08:00
2012-08-27 11:56:07 -04:00
2012-09-07 12:19:25 +08:00
2012-08-28 23:40:56 +08:00
2012-09-07 12:19:25 +08:00
2012-01-27 22:19:53 +08:00

                  XML toolkit from the GNOME project

Full documentation is available on-line at
    http://xmlsoft.org/

This code is released under the MIT Licence see the Copyright file.

To build on an Unixised setup:
   ./configure ; make ; make install
To build on Windows:
   see instructions on win32/Readme.txt

To assert build quality:
   on an Unixised setup:
      run make tests
   otherwise:
       There is 3 standalone tools runtest.c runsuite.c testapi.c, which
       should compile as part of the build or as any application would.
       Launch them from this directory to get results, runtest checks 
       the proper functionning of libxml2 main APIs while testapi does
       a full coverage check. Report failures to the list.

To report bugs, follow the instructions at: 
  http://xmlsoft.org/bugs.html

A mailing-list xml@gnome.org is available, to subscribe:
    http://mail.gnome.org/mailman/listinfo/xml

The list archive is at:
    http://mail.gnome.org/archives/xml/

All technical answers asked privately will be automatically answered on
the list and archived for public access unless privacy is explicitly
required and justified.

Daniel Veillard

$Id$
Description
Анализатор XML и инструментарий
Readme 46 MiB
Languages
C 85.3%
HTML 7%
Python 4%
POV-Ray SDL 1.2%
CMake 0.6%
Other 1.8%