<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_libxml2/result/HTML, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/'/>
<entry>
<title>Upgrade libxml2 to 1a360c1c2ec950f478d55b31722ecf78f5698e97</title>
<updated>2020-07-31T07:02:25+00:00</updated>
<author>
<name>Haibo Huang</name>
<email>hhb@google.com</email>
</author>
<published>2020-07-31T06:01:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=cfd91dcb1d8895a6e567a9ff975c3ff6e08202d4'/>
<id>cfd91dcb1d8895a6e567a9ff975c3ff6e08202d4</id>
<content type='text'>
Also change upstream to github.

This change moves away from stable release. Because we need CMakeLists.txt. It is not in any release yet.

They are likely to release another stable version within this year. We can upgrade to that version when it is available.

Bug: 157157503
Change-Id: If6f245dbabe36a114563d209c8e100b7e3083f20
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also change upstream to github.

This change moves away from stable release. Because we need CMakeLists.txt. It is not in any release yet.

They are likely to release another stable version within this year. We can upgrade to that version when it is available.

Bug: 157157503
Change-Id: If6f245dbabe36a114563d209c8e100b7e3083f20
</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize keepBlanks in HTML parser</title>
<updated>2017-06-12T17:11:54+00:00</updated>
<author>
<name>Nick Wellnhofer</name>
<email>wellnhofer@aevum.de</email>
</author>
<published>2017-06-12T17:10:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=0b2d5c48e3e0c16e434450057927ad4aa52f9f5c'/>
<id>0b2d5c48e3e0c16e434450057927ad4aa52f9f5c</id>
<content type='text'>
This caused failures in the HTML push tests but the fix required to
change the expected output of the HTML SAX tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This caused failures in the HTML push tests but the fix required to
change the expected output of the HTML SAX tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test cases for bug 758518</title>
<updated>2017-06-12T16:26:11+00:00</updated>
<author>
<name>David Kilzer</name>
<email>ddkilzer@apple.com</email>
</author>
<published>2017-06-12T16:26:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=85c112a0828a13aadf9fa806a38dfb185e1ddd4c'/>
<id>85c112a0828a13aadf9fa806a38dfb185e1ddd4c</id>
<content type='text'>
test/HTML/758518-entity.html exposed a bug in pushParseTest() in
runtest.c which assumed that an input file was at least 4 bytes long.
That test case is only 3 bytes, so we now take the minimum of 4 bytes
or the length of the test input.  We also now use 'chunkSize' in place
of the hard-coded value '1024' later in the function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test/HTML/758518-entity.html exposed a bug in pushParseTest() in
runtest.c which assumed that an input file was at least 4 bytes long.
That test case is only 3 bytes, so we now take the minimum of 4 bytes
or the length of the test input.  We also now use 'chunkSize' in place
of the hard-coded value '1024' later in the function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Heap-based buffer overread in htmlCurrentChar</title>
<updated>2016-05-23T07:01:07+00:00</updated>
<author>
<name>Pranjal Jumde</name>
<email>pjumde@apple.com</email>
</author>
<published>2016-03-01T23:18:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=0bcd05c5cd83dec3406c8f68b769b1d610c72f76'/>
<id>0bcd05c5cd83dec3406c8f68b769b1d610c72f76</id>
<content type='text'>
For https://bugzilla.gnome.org/show_bug.cgi?id=758606

* parserInternals.c:
(xmlNextChar): Add an test to catch other issues on ctxt-&gt;input
corruption proactively.
For non-UTF-8 charsets, xmlNextChar() failed to check for the end
of the input buffer and would continuing reading.  Fix this by
pulling out the check for the end of the input buffer into common
code, and return if we reach the end of the input buffer
prematurely.
* result/HTML/758606.html: Added.
* result/HTML/758606.html.err: Added.
* result/HTML/758606.html.sax: Added.
* result/HTML/758606_2.html: Added.
* result/HTML/758606_2.html.err: Added.
* result/HTML/758606_2.html.sax: Added.
* test/HTML/758606.html: Added test case.
* test/HTML/758606_2.html: Added test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For https://bugzilla.gnome.org/show_bug.cgi?id=758606

* parserInternals.c:
(xmlNextChar): Add an test to catch other issues on ctxt-&gt;input
corruption proactively.
For non-UTF-8 charsets, xmlNextChar() failed to check for the end
of the input buffer and would continuing reading.  Fix this by
pulling out the check for the end of the input buffer into common
code, and return if we reach the end of the input buffer
prematurely.
* result/HTML/758606.html: Added.
* result/HTML/758606.html.err: Added.
* result/HTML/758606.html.sax: Added.
* result/HTML/758606_2.html: Added.
* result/HTML/758606_2.html.err: Added.
* result/HTML/758606_2.html.sax: Added.
* test/HTML/758606.html: Added test case.
* test/HTML/758606_2.html: Added test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Detect change of encoding when parsing HTML names</title>
<updated>2016-05-23T07:01:07+00:00</updated>
<author>
<name>Hugh Davenport</name>
<email>hugh@davenport.net.nz</email>
</author>
<published>2016-05-04T03:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=beca86e8c86984b967a6efa05a9653470253edda'/>
<id>beca86e8c86984b967a6efa05a9653470253edda</id>
<content type='text'>
From https://bugzilla.gnome.org/show_bug.cgi?id=758518

Happens when a file has a name getting parsed, but no valid encoding
set, so libxml has to guess what the encoding is. This patch detects
when the buffer location changes, and if it does, restarts the parsing
of the name.

This slightly change a couple of regression tests output
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From https://bugzilla.gnome.org/show_bug.cgi?id=758518

Happens when a file has a name getting parsed, but no valid encoding
set, so libxml has to guess what the encoding is. This patch detects
when the buffer location changes, and if it does, restarts the parsing
of the name.

This slightly change a couple of regression tests output
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug 758605: Heap-based buffer overread in xmlDictAddString &lt;https://bugzilla.gnome.org/show_bug.cgi?id=758605&gt;</title>
<updated>2016-05-23T07:01:07+00:00</updated>
<author>
<name>Pranjal Jumde</name>
<email>pjumde@apple.com</email>
</author>
<published>2016-03-01T19:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=a820dbeac29d330bae4be05d9ecd939ad6b4aa33'/>
<id>a820dbeac29d330bae4be05d9ecd939ad6b4aa33</id>
<content type='text'>
Reviewed by David Kilzer.

* HTMLparser.c:
(htmlParseName): Add bounds check.
(htmlParseNameComplex): Ditto.
* result/HTML/758605.html: Added.
* result/HTML/758605.html.err: Added.
* result/HTML/758605.html.sax: Added.
* runtest.c:
(pushParseTest): The input for the new test case was so small
(4 bytes) that htmlParseChunk() was never called after
htmlCreatePushParserCtxt(), thereby creating a false positive
test failure.  Fixed by using a do-while loop so we always call
htmlParseChunk() at least once.
* test/HTML/758605.html: Added.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by David Kilzer.

* HTMLparser.c:
(htmlParseName): Add bounds check.
(htmlParseNameComplex): Ditto.
* result/HTML/758605.html: Added.
* result/HTML/758605.html.err: Added.
* result/HTML/758605.html.sax: Added.
* runtest.c:
(pushParseTest): The input for the new test case was so small
(4 bytes) that htmlParseChunk() was never called after
htmlCreatePushParserCtxt(), thereby creating a false positive
test failure.  Fixed by using a do-while loop so we always call
htmlParseChunk() at least once.
* test/HTML/758605.html: Added.
</pre>
</div>
</content>
</entry>
<entry>
<title>Keep non-significant blanks node in HTML parser</title>
<updated>2012-09-07T11:32:12+00:00</updated>
<author>
<name>Daniel Veillard</name>
<email>veillard@redhat.com</email>
</author>
<published>2012-09-07T11:32:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=f933c898132f20a50ba39ac6116378b71a01c700'/>
<id>f933c898132f20a50ba39ac6116378b71a01c700</id>
<content type='text'>
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:

&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;This is a test.&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;This is a test.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;

is read as:

&lt;html&gt;&lt;head&gt;&lt;title&gt;This is a test.&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
    &lt;p&gt;This is a test.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;

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 &lt;igor_ignatiouk@hotmail.com&gt;

* 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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:

&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;This is a test.&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;This is a test.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;

is read as:

&lt;html&gt;&lt;head&gt;&lt;title&gt;This is a test.&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
    &lt;p&gt;This is a test.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;

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 &lt;igor_ignatiouk@hotmail.com&gt;

* 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
</pre>
</div>
</content>
</entry>
<entry>
<title>HTML parser error with &lt;noscript&gt; in the &lt;head&gt;</title>
<updated>2012-05-11T11:31:12+00:00</updated>
<author>
<name>Denis Pauk</name>
<email>pauk.denis@gmail.com</email>
</author>
<published>2012-05-11T11:31:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=a0cd075d94518cd254d5fe122cc6825a1dfc6093'/>
<id>a0cd075d94518cd254d5fe122cc6825a1dfc6093</id>
<content type='text'>
For https://bugzilla.gnome.org/show_bug.cgi?id=615785
When the &lt;noscript&gt; is found, &lt;head&gt; is closed and a &lt;body&gt; element is created.
The real &lt;body id="xxx"&gt; gets skipped over, so I can't see any of the
body's attributes.
Just don't close &lt;head&gt; when encountering a &lt;noscript&gt;
Add a regression test too
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For https://bugzilla.gnome.org/show_bug.cgi?id=615785
When the &lt;noscript&gt; is found, &lt;head&gt; is closed and a &lt;body&gt; element is created.
The real &lt;body id="xxx"&gt; gets skipped over, so I can't see any of the
body's attributes.
Just don't close &lt;head&gt; when encountering a &lt;noscript&gt;
Add a regression test too
</pre>
</div>
</content>
</entry>
<entry>
<title>Add HTML parser support for HTML5 meta charset encoding declaration</title>
<updated>2012-05-10T07:34:57+00:00</updated>
<author>
<name>Denis Pauk</name>
<email>pauk.denis@gmail.com</email>
</author>
<published>2012-05-10T07:34:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=868d92da8915fc5dc5e329d93cc7882370a28475'/>
<id>868d92da8915fc5dc5e329d93cc7882370a28475</id>
<content type='text'>
For https://bugzilla.gnome.org/show_bug.cgi?id=655218

http://www.w3.org/TR/2011/WD-html5-20110525/semantics.html#the-meta-element

"""
The charset attribute specifies the character encoding used by the document.
This is a character encoding declaration. If the attribute is present in an XML
document, its value must be an ASCII case-insensitive match for the string
"UTF-8" (and the document is therefore forced to use UTF-8 as its
encoding).
"""

However, while &lt;meta http-equiv="Content-Type" content="text/html;
charset=utf8"&gt; works, &lt;meta charset="utf8"&gt; does not.

While libxml2 HTML parser is not tuned for HTML5, this is a simple
addition

Also added a testcase
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For https://bugzilla.gnome.org/show_bug.cgi?id=655218

http://www.w3.org/TR/2011/WD-html5-20110525/semantics.html#the-meta-element

"""
The charset attribute specifies the character encoding used by the document.
This is a character encoding declaration. If the attribute is present in an XML
document, its value must be an ASCII case-insensitive match for the string
"UTF-8" (and the document is therefore forced to use UTF-8 as its
encoding).
"""

However, while &lt;meta http-equiv="Content-Type" content="text/html;
charset=utf8"&gt; works, &lt;meta charset="utf8"&gt; does not.

While libxml2 HTML parser is not tuned for HTML5, this is a simple
addition

Also added a testcase
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't give default HTML boolean attribute values in parser</title>
<updated>2010-03-15T14:47:50+00:00</updated>
<author>
<name>Daniel Veillard</name>
<email>veillard@redhat.com</email>
</author>
<published>2010-03-15T14:47:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libxml2/commit/?id=3c080d6d723b5cee379804cfa6bf394df6057f67'/>
<id>3c080d6d723b5cee379804cfa6bf394df6057f67</id>
<content type='text'>
* HTMLparser.c: don't default value of HTML boolean attributes in the
  parser
* SAX2.c: move this to SAX2 tree building backend
* result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax
  result/HTML/wired.html.sax: this changes a few HTML SAX regression
  tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* HTMLparser.c: don't default value of HTML boolean attributes in the
  parser
* SAX2.c: move this to SAX2 tree building backend
* result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax
  result/HTML/wired.html.sax: this changes a few HTML SAX regression
  tests
</pre>
</div>
</content>
</entry>
</feed>
