Tika
  1. Tika
  2. TIKA-457

HTMLParser gets an early </body> event

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Component/s: parser
    • Labels:
      None

      Description

      I am using the IdentityMapper in the HTMLparser with this simple document:

      <html><head><title> my title </title>
      </head>
      <body>
      <frameset rows=\"20,*\"> 
      <frame src=\"top.html\">
      </frame>
      <frameset cols=\"20,*\">
      <frame src=\"left.html\">
      </frame>
      <frame src=\"invalid.html\"/>
      </frame>
      <frame src=\"right.html\">
      </frame>
      </frameset>
      </frameset>
      </body></html>
      

      Strangely the HTMLHandler is getting a call to endElement on the body BEFORE we reach frameset. As a result the variable bodylevel is decremented back to 0 and the remaining entities are ignored due to the logic implemented in HTMLHandler.

      Any idea?

      1. TIKA-457.patch
        10 kB
        Ken Krugler

        Issue Links

          Activity

          Julien Nioche created issue -
          Julien Nioche made changes -
          Field Original Value New Value
          Link This issue is related to TIKA-463 [ TIKA-463 ]
          Ken Krugler made changes -
          Assignee Ken Krugler [ kkrugler ]
          Ken Krugler made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ken Krugler made changes -
          Attachment TIKA-457.patch [ 12452035 ]
          Ken Krugler made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 0.8 [ 12314877 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Ken Krugler
              Reporter:
              Julien Nioche
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development