Uploaded image for project: 'SonarHTML'
  1. SonarHTML
  2. SONARHTML-58

FP on UnclosedTagCheck on ENTITY tags

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      False positive when multiple ENTITY tags are set in a row (e.g. in a DOCTYPE statement). Such tag has no closing equivalent.

      Reproducer:

      Workaround: Web:UnclosedTagCheck rule is a parameterised rules, so just add !ENTITY to the ignoreTags parameter (with exclamation mark !)

      Notes:

      • few resources on ENTITY - here or here
      • there is apparently something more to it because using only one ENTITY does not reproduce ( one_entity.png )

        Attachments

        1. entity_fp.png
          entity_fp.png
          194 kB
        2. one_entity.png
          one_entity.png
          168 kB
        3. sample.xhtml
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              nicolas.peru Nicolas Peru
              Reporter:
              nicolas.bontoux Nicolas Bontoux (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: