Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-374

Invalid nested item takes out everything

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • extractors, microdata
    • None

    Description

      I encountered an item such as:

      <div itemscope itemtype="http://schema.org/Question">
          <h3 itemprop="name">Name</h3>
          <div itemprop="acceptedAnswer" itemscope itemtype="schema.org/Answer">
            <p itemprop="text">Text</p>
         </div>
      </div>
      

       

      Because of the invalid answer, it throws an `IllegalArgumentException` (not a `MicrodataParserException` !) and I do not even have the Question available.

      Now, because I let the default `FULL_REPORT` as `ErrorMode` I was expecting to have the question and `getErrors()` returning eventual encountered errors.

      Am I missing something?

       

      Edit:

       

      Note that Google testing tool is somehow not complaining (maybe it should?):

        https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Froams.es%2Ffreedompop%2F

        

      Attachments

        Issue Links

          Activity

            People

              hansbrende Hans Brende
              panthony Anthony Pessy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: