Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context to error messages #6

Open
petdance opened this issue Mar 30, 2018 · 0 comments
Open

Add context to error messages #6

petdance opened this issue Mar 30, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@petdance
Copy link
Owner

petdance commented Mar 30, 2018

It would be extremely helpful when debugging to (optionally of course) see the
line of HTML that tidy was complaining about.

line 187 column 30 - Warning: <input> isn't allowed in <table> elements
                        </tr><input type="hidden" name="showbooks" value="1">                    <tr>

line 205 column 37 - Warning: missing </font> before <p>
            <td>                    <font color="red"><p id="at-price-type-label">NYC Quote</p></font><br />

line 211 column 45 - Warning: missing </b> before <p>
                    </p>                    <b><p>Prices do not include cataloging or processing</p></b>            </td>

line 232 column 30 - Warning: <input> isn't allowed in <table> elements
                        </tr><input type="hidden" name="showbooks" value="1">                    <tr>

line 250 column 55 - Warning: <p> anchor "at-price-type-label" already defined
            <td>                    <font color="red"><p id="at-price-type-label">NYC Quote</p></font><br />

I have submitted this as a request in the underlying library. htacg/tidy-html5#706 If that's not something they want to add at the library level, then we can add it here in HTML::Tidy5.

@petdance petdance added the enhancement New feature or request label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant