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

</select> ending tag missing #904

Closed
BearOpenSource opened this issue Nov 6, 2020 · 2 comments
Closed

</select> ending tag missing #904

BearOpenSource opened this issue Nov 6, 2020 · 2 comments

Comments

@BearOpenSource
Copy link

BearOpenSource commented Nov 6, 2020

if starting tag is missing the ending tag, tidy could not add ending tag.
example:
<table> <select style="width: 64px; height: 24px; border: 1px solid #ddd;" id="year_box" onchange="changeDate();"> </table>

@geoffmcl
Copy link
Contributor

@BearOpenSource thank you for the issue, but unfortunately can NOT repeat the problem you suggest...

First, in the sample code you give, you put <select> as a child of <table>, which is not valid, but if you add a <tr><td>, where it is valid, then tidy will still have problems, but will for sure output Warning: missing </select>, and add it, to the output...

You do not mention the version of tidy you are using, but I am not sure it matters. As far as I know ALL versions of tidy will definitely supply the select close tag, if missing...

Please check again, give further feedback, more examples, etc... or close this... thanks...

@geoffmcl
Copy link
Contributor

@BearOpenSource, reviewed, and as stated, unable to repeat the problem!

Please supply further information, feedback, more sample html, sample configs, tidy version, etc, etc... thanks...

Meantime closing this... thanks...

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

No branches or pull requests

2 participants