tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TIKA-525) Mismatched start and end elements in HtmlParser
Date Thu, 10 Feb 2011 13:06:57 GMT

     [ https://issues.apache.org/jira/browse/TIKA-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved TIKA-525.
--------------------------------

    Resolution: Fixed
      Assignee: Jukka Zitting  (was: Ken Krugler)

Fixed in revision 1069377.

> Mismatched start and end elements in HtmlParser
> -----------------------------------------------
>
>                 Key: TIKA-525
>                 URL: https://issues.apache.org/jira/browse/TIKA-525
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.7
>            Reporter: Geoff Jarrad
>            Assignee: Jukka Zitting
>             Fix For: 0.9
>
>
> Due to the use of conditionals when determining whether or not to output a HTML element,
the HtmlParser sometimes blocks a start element but erroneously passes the end element.
> Example: Consider the action of the element <base target="_top"/> for the methods:
> <pre>
>     public void startElement(
>             String uri, String local, String name, Attributes atts)
>             throws SAXException {
> ...
>             } else if ("BASE".equals(name) && atts.getValue("href") != null)
{
> ...
>                 xhtml.startElement(uri, local, "base", atts);
>            }
> </pre>
> and
> <pre>
>     public void endElement(
>             String uri, String local, String name) throws SAXException {
> ...
>             } else if ("BASE".equals(name)) {
>                 xhtml.endElement("base");
>             }
> ...
> </pre>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message