Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-648

Parsing HTML anchors with embedded div faulty

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None

      Description

      Using Nutch with Tika 0.9 i cannot extract all two outlinks from a given page
      [1]. This is because Tika doensn't return the document with the anchor text
      embedded and Nutch skips empty anchors when collecting outlinks.

      The raw HTML is:
      <a href="#"><div>bla 1</div></a>
      <a href="#">bla 2</a>

      But the parsed HTML with tika-app-1.0-SNAPSHOT.jar -h test.html is:
      <a shape="rect" href="#"/>bla 1
      <a shape="rect" href="#">bla 2</a>

      [1]: http://people.apache.org/~markus/test.html

      Also described on the Tika user list:
      http://search.lucidimagination.com/search/document/e74d7e72fd61543a/parsing_html_anchors_with_embedded_div_faulty

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markus17 Markus Jelsma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: