-
Notifications
You must be signed in to change notification settings - Fork 429
tidy incorrectly warns when <script> tags have html inside #281
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
Comments
@joeheyming yes, that certainly seems an erroneous warning output... Will look at it soonest, unless someone else beats me to it... Thanks for reporting... |
@joeheyming hmmmmm, that message usually warns that tidy has inserted an escape character into javascript... But this conversion of In this sample you have used I guess this warning should be after the attribute check, and only issue it if tidy adds the escape character... Since I am presently working in an experimental branch To get this version, please do
Hope you get a chance to re-test using verions 5.1.14.EXP1 and report... thanks... |
I just tested this out, thanks so much for looking at this. I still am having the issue with my freshly built issue-65 branch. I ran your instructions and am pointing to my local ./tidy5 under build/cmake: line 383 column 97 - Warning: '<' + '/' + letter not allowed here Here is the offending html: It doesn't like the closing </i> tag and the closing </span> tag. |
@joeheyming, unfortunately can not duplicate a problem with the html sample you give... Is that a typo Tidy does NOT have a What do you get when you run If you do not see 5.1.14.EXP1, especially the EXP1, then something is wrong in your checkout of What branch displays when you run Very puzzled... |
ahah, that was it. Thanks, I've been using tidy5 since I wrote my html lint test back in June! :-P Looks like it works! |
@joeheyming have fully merged If you get a chance to pull, build, install |
@joeheyming indicates the issue is resolved, and testing master on my system indicates that too, so I'll close the issue. |
If I install tidy with homebrew, will I be getting tidy with this issue resolved? $$ tidy -v |
@joeheyming no, I think not... my reading of http://braumeister.org/formula/tidy-html5 says that only has 5.0.0! This fix is only in 5.1.17++ You could add a comment to this commit, asking @zmwangx, @MikeMcQuaid to add the 5.1.25 release... it is a dropin replacement of 5.0.0... just change the url to https://github.com/htacg/tidy-html5/archive/5.1.25.tar.gz... But why use homebrew? I note they have a backlog of some 250 PR, and a similar number of issues, so it looks like the Why not continue to build your tidy from source, like it seemed you were doing at the beginning, then you can use the latest, 5.1.32, or even participate in testing of developmental branches... Tidy needs your help! |
Happy to oblige, submitted Homebrew/legacy-homebrew#46874.
It's awesome. You'll know if you've used it.
You'll know they're doing a good job if you also look at the number of issues/PRs closed... PR: 242 open, 30253 closed. Issues: 254 open, 16084 closed. |
I think it's a bit rude to ping me by name and then say that, @geoffmcl. The reason we have a large backlog is because e.g. [we had 26 pull requests opened yesterday](repo:homebrew/homebrew created:2015-12-09 is:pr). |
@joeheyming yes, the stats are awesome... sorry for the casual observation! And look forward to your PR so you can make an impact on open source ;=)) |
@geoffmcl The reason I hesitate to build directly from the source is that I work with a team of other developers and they understand homebrew. The barrier to entry increases as you require manual steps. Basically I'm using tidy to block git pushes to my team's repository if any html is malformed. |
@MikeMcQuaid, clearly @geoffmcl meant your stats are awesome. Is there anything I can do to help ensure we keep up to date with homebrew? I'm not the package manager for homebrew's tidy package, but as one of the Tidy team and a Mac user myself, I'll do what I can when I can. |
@balthisar We sorted it out but thanks for clarifying. You could just submit new releases as formulae updates to Homebrew (if your buildsystem is the same it's just a URL and checksum change). Thanks! |
Some javascript libraries use script tags for templates:
<script type="text/html" id="my-template">
<h1>hello world</h1>
</script>
When I put html with a script tag like this , tidy5 warns for me around any closing tag that is not a closing </script> tag:
line 383 column 97 - Warning: '<' + '/' + letter not allowed here
The text was updated successfully, but these errors were encountered: