<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/hotsax/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/hotsax/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 05 Jan 2012 23:42:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hotsax/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Style parsing of comment characters </title><link>https://sourceforge.net/p/hotsax/bugs/19/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 23:42:06 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net50e69ccb07e8f81fe7eba32d310371ddac272f5b</guid></item><item><title>jflex 1.4.3 does not like syntax of HtmlLexer.flex</title><link>https://sourceforge.net/p/hotsax/bugs/18/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 20:58:07 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net455b8b219c25f9d45430ccc09f67b19b56262cee</guid></item><item><title>does not parse "&lt;input disabled/&gt;"</title><link>https://sourceforge.net/p/hotsax/bugs/17/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 17:44:45 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net964c5fa9e7de2685fe95a3dc30f0853664496484</guid></item><item><title>Empty attribute syntax not behaving to html5 standard</title><link>https://sourceforge.net/p/hotsax/bugs/16/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 17:22:34 -0000</pubDate><guid isPermaLink="false">https://sourceforge.neteeaea1b04ba22468e0803a8a68fed29c2f80d0e6</guid></item><item><title>SaxParser on head gets a NullPointerException</title><link>https://sourceforge.net/p/hotsax/bugs/15/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 16:35:28 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net77b3d59185212343897e6a1fb15e308d0b269ac2</guid></item><item><title>SaxParser on trunk does not compile</title><link>https://sourceforge.net/p/hotsax/bugs/14/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Simon Massey</dc:creator><pubDate>Thu, 05 Jan 2012 16:26:37 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netf50234814141bfc8032033335798b302e3da5922</guid></item><item><title>it seems that HotSAX doesn't support Chinese html pages!</title><link>https://sourceforge.net/p/hotsax/bugs/13/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 26 Jan 2007 06:38:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netfe6373a466ef1739356f2cdf6eafdc0d765a8790</guid></item><item><title>NullPointerException in startDTD</title><link>https://sourceforge.net/p/hotsax/bugs/12/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bernard</dc:creator><pubDate>Tue, 14 Nov 2006 08:03:29 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net2a474ed550fb988d786b563bd9e7489afeb62599</guid></item><item><title>Text newlines eliminated in characters() output</title><link>https://sourceforge.net/p/hotsax/bugs/11/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 09 Mar 2006 21:10:39 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netee984c36666e6cc169f07873c66fefd0b308dd98</guid></item><item><title>Strange behaviour handing comment and CDATA sections</title><link>https://sourceforge.net/p/hotsax/bugs/10/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tom Fennelly</dc:creator><pubDate>Wed, 13 Jul 2005 16:39:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7516e97a6f9f95e1f9e1b14fb720560ce88f2bae</guid></item></channel></rss>