Gang;
(Nov. 08, 2008 02:24 PM)ProxRocks Wrote: [ -> ]i didn't think "comment tags" had any "closing"...
To be sure, there are two kinds of "comment tags". Properly speaking, to avoid confusion (such as I first suffered when reading this), the Official HTML comment tag is the one using the less-than and greater-than signs, like this: <!-- and -->. Browsers are supposed to ignore (not render) anything between those two tags.
Of course, this topic is referring to a pair of
code comments that are meant to identify a container of code (usually for modification purposes). Just a tiny bit of difference there, but one that should be noted.
(Nov. 08, 2008 02:24 PM)ProxRocks Wrote: [ -> ]i'm wondering if there's a way to fix "failed or improperly-placed closing tags" as opposed to making this a "site-specific" fix...
That'd be a job and a half! To my simple mind, that'd require a self-learning filter, involving some heuristics and Beyesian techniques, I'm sure. Not for the feint of heart! On the other hand, logic says that if you found the proper text whereupon to insert the closing code comment, then you've already found the offending code in the first place, and can deal with right then and there.
Further thoughts.......
It's a widely held sentiment that Proxo should be made to filter as generically as possible. I agree with that, but only until it becomes burdensome to "make it so". As z12 notes above, there comes a time when it's easier to ignore the problematic 'generic fix', and start doing things individually, on a site-by-site basis. As it happens, I've been more or less forced into this mode almost from the beginning, for one reason - I don't visit the worlds largest collection of diverse websites, so for me, the generic approach doesn't work. Since I'm not in the "Filter Factory" business, I just make it work for me, and that's good enough.
But that's not to say that generic is bad, simply that it's not always the best solution. Rather, it's a best-case scenario, and that has to be decided by each user for him/herself. And don't get me wrong, I do learn from all the examples posted here by the large number of contributors who each think slightly differently about how to solve a problem. (Which is all a filter is really doing, solving a problem in how one sees/views a web page.) Looked at in that light, it's difficult to imagine a "one-size-fits-all" solution to every problem.
So ends my morning diatribe, thanks for putting up with me!
Oddysey