Skip to content

Feature: zero return status code when all errors & warnings have been muted #933

Open
@Lucas-C

Description

@Lucas-C

Hi!

Thank you for maintaining this robust HTML linter!

I'm using bootstrap-progressbar on an old project,
that uses custom HTML attributes like aria-valuetransitiongoal.

There is a minimal HTML usage example (without the JS libs):

<!DOCTYPE html>
<html lang="fr">
<head>
  <meta name="generator" content="HTML Tidy for HTML5 for Windows version 5.6.0">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Issue reproduction for HTML Tidy</title>
</head>
<body>
  <div class="progress">
    <div class="progress-bar progress-bar-primary six-sec-ease-in-out" role="progressbar" aria-valuetransitiongoal="80">
      80%
    </div>
  </div>
</body>
</html>

Calling HTML Tidy on this file:

$ tidy -quiet -lang en -indent -wrap 0 -modify index.html
line 13 column 5 - Warning: <div> proprietary attribute "aria-valuetransitiongoal"

Could it be possible to add an option in htmltidy.conf to ignore this kind of situation please?
I' would like the tidy CLI to exit with status 0 while validating this file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions