<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/hotsax/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/hotsax/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/hotsax/bugs/</id><updated>2012-01-05T23:42:06Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Style parsing of comment characters </title><link href="https://sourceforge.net/p/hotsax/bugs/19/" rel="alternate"/><published>2012-01-05T23:42:06Z</published><updated>2012-01-05T23:42:06Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.net50e69ccb07e8f81fe7eba32d310371ddac272f5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As reported here: &lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/projects/hotsax/forums/forum/91440/topic/888062"&gt;https://sourceforge.net/projects/hotsax/forums/forum/91440/topic/888062&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following html&lt;/p&gt;
&lt;p&gt;&amp;lt;style&amp;gt;&lt;br /&gt;
// &amp;lt;![CDATA[&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
body,td,a,p,.h{font-family:arial,sans-serif;} &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
// ]]&amp;gt;&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;/p&gt;
&lt;p&gt;is parsed and reordered as: &lt;/p&gt;
&lt;p&gt;&amp;lt;style&amp;gt;&amp;lt;![CDATA[&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
body,td,a,p,.h{font-family:arial,sans-serif;} &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
// &lt;br /&gt;
// ]]&amp;gt;&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;/p&gt;
&lt;p&gt;In a similar manner this html:&lt;/p&gt;
&lt;p&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;
/*&amp;lt;![CDATA[*/&lt;br /&gt;
body { background-image: url("marble.png?width=300&amp;amp;height=300") }   &lt;br /&gt;
/*]]&amp;gt;*/&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;/p&gt;
&lt;p&gt;is reordered to be&lt;/p&gt;
&lt;p&gt;*/&lt;br /&gt;
body { background-image: url("marble.png?width=300&amp;amp;height=300") }   &lt;br /&gt;
/*&lt;br /&gt;
/**/&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>jflex 1.4.3 does not like syntax of HtmlLexer.flex</title><link href="https://sourceforge.net/p/hotsax/bugs/18/" rel="alternate"/><published>2012-01-05T20:58:07Z</published><updated>2012-01-05T20:58:07Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.net455b8b219c25f9d45430ccc09f67b19b56262cee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Building the 0.1.2c flex code with jflex 1.4.3 gives the error: &lt;/p&gt;
&lt;p&gt;[INFO] --- maven-jflex-plugin:1.4.3:generate (default) @ hotsax-parser ---&lt;/p&gt;
&lt;p&gt;Error in file "/Users/simbo/git/hotsax-parser/hotsax-parser/src/main/jflex/HtmlLexer.flex" (line 381): &lt;br /&gt;
Unterminated string at end of line.&lt;br /&gt;
[^"]* { string.append(yytext()); }&lt;br /&gt;
^&lt;/p&gt;
&lt;p&gt;this is solved by changing the following line in the HtmlLexer.flex:&lt;/p&gt;
&lt;p&gt;[^"]* { string.append(yytext()); }&lt;/p&gt;
&lt;p&gt;to be:&lt;/p&gt;
&lt;p&gt;[^\"]* { string.append(yytext()); }&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>does not parse "&lt;input disabled/&gt;"</title><link href="https://sourceforge.net/p/hotsax/bugs/17/" rel="alternate"/><published>2012-01-05T17:44:45Z</published><updated>2012-01-05T17:44:45Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.net964c5fa9e7de2685fe95a3dc30f0853664496484</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The following html renders a disabled text box on safari on mac osx lion:&lt;/p&gt;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head/&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;input disabled=yes/&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;p&gt;yet hotsax does not parse the "&amp;lt;input disabled/&amp;gt;" nor does a space help "&amp;lt;input disabled /&amp;gt;"&lt;/p&gt;
&lt;p&gt;it will successfully parse "&amp;lt;input disabled&amp;gt;" (with no slash) or "&amp;lt;input disabled &amp;gt;" (no slash but space)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Empty attribute syntax not behaving to html5 standard</title><link href="https://sourceforge.net/p/hotsax/bugs/16/" rel="alternate"/><published>2012-01-05T17:22:34Z</published><updated>2012-01-05T17:22:34Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.neteeaea1b04ba22468e0803a8a68fed29c2f80d0e6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="http://dev.w3.org/html5/spec/syntax.html#attributes-0" rel="nofollow"&gt;http://dev.w3.org/html5/spec/syntax.html#attributes-0&lt;/a&gt; says: &lt;/p&gt;
&lt;p&gt;Empty attribute syntax Just the attribute name. The value is implicitly the empty string. In the following example, the disabled attribute is given with the empty attribute syntax:&lt;/p&gt;
&lt;p&gt;&amp;lt;input disabled&amp;gt;&lt;/p&gt;
&lt;p&gt;With HotSax the above parses as though it were &lt;/p&gt;
&lt;p&gt;&amp;lt;input disabled="disabled"&amp;gt;&lt;/p&gt;
&lt;p&gt;not &lt;/p&gt;
&lt;p&gt;&amp;lt;input disabled=""&amp;gt;&lt;/p&gt;
&lt;p&gt;which is how the spec describes it as an "implicit empty string". &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SaxParser on head gets a NullPointerException</title><link href="https://sourceforge.net/p/hotsax/bugs/15/" rel="alternate"/><published>2012-01-05T16:35:28Z</published><updated>2012-01-05T16:35:28Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.net77b3d59185212343897e6a1fb15e308d0b269ac2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The following exception:&lt;/p&gt;
&lt;p&gt;caught exception parsing java.lang.NullPointerException null&lt;br /&gt;
java.lang.NullPointerException&lt;br /&gt;
at java.util.StringTokenizer.&amp;lt;init&amp;gt;(StringTokenizer.java:182)&lt;br /&gt;
at java.util.StringTokenizer.&amp;lt;init&amp;gt;(StringTokenizer.java:204)&lt;br /&gt;
at hotsax.html.sax.helpers.EntityResolverImpl.resolveEntity(EntityResolverImpl.java:39)&lt;br /&gt;
at hotsax.html.sax.SaxParser.parse(SaxParser.java:191)&lt;/p&gt;
&lt;p&gt;occurs when: &lt;/p&gt;
&lt;p&gt;InputSource input = new InputSource(new StringReader("&amp;lt;img src='picture.png'/&amp;gt;&amp;lt;/a&amp;gt;"));&lt;br /&gt;
parser.parse(input);&lt;/p&gt;
&lt;p&gt;on platform: &lt;/p&gt;
&lt;p&gt;java version "1.6.0_29"&lt;br /&gt;
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)&lt;br /&gt;
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SaxParser on trunk does not compile</title><link href="https://sourceforge.net/p/hotsax/bugs/14/" rel="alternate"/><published>2012-01-05T16:26:37Z</published><updated>2012-01-05T16:26:37Z</updated><author><name>Simon Massey</name><uri>https://sourceforge.net/u/userid-944532/</uri></author><id>https://sourceforge.netf50234814141bfc8032033335798b302e3da5922</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A clean checkout does not compile due to: &lt;/p&gt;
&lt;p&gt;import org.apache.xerces.utils.*;&lt;br /&gt;
import org.apache.xerces.readers.*;&lt;/p&gt;
&lt;p&gt;remove those lines and it compiles. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>it seems that HotSAX doesn't support Chinese html pages!</title><link href="https://sourceforge.net/p/hotsax/bugs/13/" rel="alternate"/><published>2007-01-26T06:38:01Z</published><updated>2007-01-26T06:38:01Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netfe6373a466ef1739356f2cdf6eafdc0d765a8790</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I try to debug xhtmlMaker.java using a html page that contains Chinese words, I encountered a ArraysOutOfBounds error!&lt;/p&gt;
&lt;p&gt;It's quite frustrating!&lt;/p&gt;
&lt;p&gt;Hoping there're some solutions.&lt;/p&gt;
&lt;p&gt;If you know,please email xiao7cn@126.com to tell me how to fix it. Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>NullPointerException in startDTD</title><link href="https://sourceforge.net/p/hotsax/bugs/12/" rel="alternate"/><published>2006-11-14T08:03:29Z</published><updated>2006-11-14T08:03:29Z</updated><author><name>Bernard</name><uri>https://sourceforge.net/u/brnrd/</uri></author><id>https://sourceforge.net2a474ed550fb988d786b563bd9e7489afeb62599</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The parser throws a NullPointerException when I use the&lt;br /&gt;
following HTML as input for xhtmlMaker.java:&lt;/p&gt;
&lt;p&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0&lt;br /&gt;
Transitional//EN"&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;p&gt;I use the files from the distribution directory&lt;br /&gt;
chapt06, version&lt;br /&gt;
HotSAX-0.1.2c&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Text newlines eliminated in characters() output</title><link href="https://sourceforge.net/p/hotsax/bugs/11/" rel="alternate"/><published>2006-03-09T21:10:39Z</published><updated>2006-03-09T21:10:39Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netee984c36666e6cc169f07873c66fefd0b308dd98</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The characters() method returns the text that occurs&lt;br /&gt;
between tags. Nowever, the newlines appear to be&lt;br /&gt;
deleted, resulting in the last word on one line being&lt;br /&gt;
joined to the first word on the next line, with no&lt;br /&gt;
intervening space.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Strange behaviour handing comment and CDATA sections</title><link href="https://sourceforge.net/p/hotsax/bugs/10/" rel="alternate"/><published>2005-07-13T16:39:01Z</published><updated>2005-07-13T16:39:01Z</updated><author><name>Tom Fennelly</name><uri>https://sourceforge.net/u/tfennelly/</uri></author><id>https://sourceforge.net7516e97a6f9f95e1f9e1b14fb720560ce88f2bae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I was trying to use Hotsax but I noticed some strange&lt;br /&gt;
behaviour when it came to handling of &amp;lt;!-- comments --&amp;gt;&lt;br /&gt;
and &amp;lt;![CDATA[]]&amp;gt; sections.&lt;/p&gt;
&lt;p&gt;As a test I wrote a very simple ContentHandler &amp;amp;&lt;br /&gt;
LexicalHandler (attached) which just output the SAX&lt;br /&gt;
event sequence to sysout.&lt;/p&gt;
&lt;h1 id="test-1"&gt;Test 1:&lt;/h1&gt;
&lt;p&gt;Input:&lt;br /&gt;
&amp;lt;x&amp;gt;&lt;br /&gt;
Text&lt;br /&gt;
&amp;lt;!-- comment --&amp;gt;&lt;br /&gt;
&amp;lt;/x&amp;gt;&lt;/p&gt;
&lt;p&gt;Resulting event sequence:&lt;br /&gt;
startDocument&lt;br /&gt;
startElement: [, x, ]&lt;br /&gt;
characters: [  Text    ]&lt;br /&gt;
comment: [ comment ]&lt;br /&gt;
characters: [  Text    ]&lt;br /&gt;
endElement: [, x, ]&lt;br /&gt;
endDocument&lt;/p&gt;
&lt;p&gt;As you can see, the characters "   Text   " are getting&lt;br /&gt;
fired twice.&lt;/p&gt;
&lt;h1 id="test-2"&gt;Test 2:&lt;/h1&gt;
&lt;p&gt;Input:&lt;br /&gt;
&amp;lt;x&amp;gt;&lt;br /&gt;
Text&lt;br /&gt;
&amp;lt;![CDATA[Cdata]]&amp;gt;&lt;br /&gt;
&amp;lt;/x&amp;gt;&lt;/p&gt;
&lt;p&gt;Resulting event sequence:&lt;br /&gt;
startDocument&lt;br /&gt;
startElement: [, x, ]&lt;br /&gt;
characters: [  Text    ]&lt;br /&gt;
startCDATA&lt;br /&gt;
characters: [  Text    ]&lt;br /&gt;
endElement: [, x, ]&lt;br /&gt;
endDocument&lt;/p&gt;
&lt;p&gt;Again, very similar but with the added problem of none&lt;br /&gt;
of the CDATA data being fired at the content handler.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>