Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-1458

All HTML tags should be closed

    XMLWordPrintable

    Details

    • Type: Bug Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Message:
      The tag "xxx" has no corresponding closing tag.
    • List of parameters:
      • Key: ignoreTags
      • Description: Ignore tags
      • Default value: HTML,HEAD,BODY,P,DT,DD,LI,OPTION,THEAD,TH,TBODY,TR,TD,TFOOT,COLGROUP,IMG,INPUT,BR,HR,FRAME,AREA,BASE,BASEFONT,COL,ISINDEX,LINK,META,PARAM
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Legacy Key:
      UnclosedTagCheck
    • Covered Languages:
      HTML
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      2min

      Description

      Even if all browsers are fault-tolerant, HTML tags should be closed to prevent any unexpected behavior.

      Noncompliant Code Example

      <html>
        <head>
          <title>Test Page    <!-- Noncompliant; title not closed -->
        <!-- Noncompliant; head not closed -->
        <body>
          <em>Emphasized Text  <!-- Noncompliant; em not closed -->
        <!-- Noncompliant; body not closed -->
      </html>  
      

      Compliant Solution

      <html>
        <head>
          <title>Test Page</title>
        </head>
        <body>
          <em>Emphasized Text</em>
        </body>
      </html>  
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              freddy.mallet Freddy Mallet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: