Hi Kevin, Nah, this is perfectly fine JavaScript, but Tidy-HTML5 doesn't like it. Apparently it converts va = /</g; to va = /<\/g; when in fact it should probably just leave it alone. I thought we'd gotten through all of this stuff way back in October, but maybe not.
Thanks Chris! Do you think I ought to file this in the requests tracker for Tidy, also a question for Geoff if you're around?
If you could share the logic with me of how the parser will disambiguate this, if you know, I'm interested. I can understand why it would escape </ to <\/ if these two characters are indeed the beginning of a closing HTML tag. So is the relevant hook for knowing whether to do so, the fact that we're already inside <script></script>, and you don't need to escape within that?
(More of a tidy question but not too far afield I dont think..) thanks Kevin _______________________________________________ Edbrowse-dev mailing list [email protected] http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev
