Skip to content

Tidy emits warnings that aren't in order #696

Description

@petdance
$ cat -n t/bad.html
     1  <html>
     2      <head>
     3          <title>Test Page</title>
     4      </head>
     5      <body>
     6          Test Page <a href="bad.html">Back to bad</a>
     7          <a hrex="goodlinks.html">good</a>
     8          <a href="bad2.html">Test</b>
     9      </body>
    10  </html>
    11
$ tidy -q -e t/bad.html
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 8 column 33 - Warning: discarding unexpected </b>
line 8 column 9 - Warning: missing </a>
line 7 column 9 - Warning: <a> proprietary attribute "hrex"

I would expect that the warning for line 7 would come before the warnings for line 8.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions