diff options
| author | Daniel Veillard <veillard@redhat.com> | 2012-09-07 19:32:12 +0800 |
|---|---|---|
| committer | Daniel Veillard <veillard@redhat.com> | 2012-09-07 19:32:12 +0800 |
| commit | f933c898132f20a50ba39ac6116378b71a01c700 (patch) | |
| tree | 309cb5de92c5636021544b06de649eb4b3e4fc1a /result/HTML/test3.html | |
| parent | 878ec9db9df09b22322906bc5fc61537391070e4 (diff) | |
| download | platform_external_libxml2-f933c898132f20a50ba39ac6116378b71a01c700.tar.gz platform_external_libxml2-f933c898132f20a50ba39ac6116378b71a01c700.tar.bz2 platform_external_libxml2-f933c898132f20a50ba39ac6116378b71a01c700.zip | |
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
Diffstat (limited to 'result/HTML/test3.html')
| -rw-r--r-- | result/HTML/test3.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/result/HTML/test3.html b/result/HTML/test3.html index 903723c1..b37a1c79 100644 --- a/result/HTML/test3.html +++ b/result/HTML/test3.html @@ -1,11 +1,13 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> -<html> -<head><base target="contents"></head> +<html>
+<head>
+<base target="contents">
+</head>
<body> <a name="ProblemDomain.Package"><h2>Component Package diagram ProblemDomain</h2>
</a><p></p> -<hr> -<dl> +<hr>
+<dl>
<dt> <b>Stereotype </b>problem domain</dt>
<dt> @@ -15,10 +17,11 @@ <dd>Interface, thats stores and manipulates the Family Tree.
</dd> </dd> -</dl> +</dl>
<p></p> -<hr> -<dl> +<hr>
+<dl>
+
<dt><h4>Class <a href="HumanInterface.FamilyFrame.html#HumanInterface.FamilyFrame">HumanInterface.FamilyFrame</a> </h4></dt>
<dt><h4>Class <a href="ProblemDomain.Birth.html#ProblemDomain.Birth">ProblemDomain.Birth</a> @@ -37,19 +40,20 @@ </h4></dt>
<dt><h4>Class <a href="ProblemDomain.Note.html#ProblemDomain.Note">ProblemDomain.Note</a> </h4></dt>
-</dl> +</dl>
+
<h4><b>Links</b></h4>
<ul><li> <b>Link to </b><a href="HumanInterface.Package.html#HumanInterface.Package">HumanInterface</a> -</li></ul> -<dir></dir> +</li></ul>
+<dir></dir>
<ul><li> <b>Link to </b><a href="DataManagement.FlatFile.Package.html#DataManagement.FlatFile.Package">DataManagement.FlatFile</a> -</li></ul> -<dir></dir> +</li></ul>
+<dir></dir>
<ul><li> <b>Link to </b><a href="DataManagement.Package.html#DataManagement.Package">DataManagement</a> -</li></ul> -<dir></dir> +</li></ul>
+<dir></dir>
</body> </html> |
