On Jun 11, 2006, at 4:55 PM, Mark Ramm wrote:

>
> On 6/11/06, Fred C <[EMAIL PROTECTED]> wrote:
>> Sorry, I can't use AJAX. I know AJAX is very fashionable right now
>> but it is not an option for this page. Also I think I would have the
>> same problem.
>
> My suggestion was a bit tongue in cheek ;)   It's the only way I know
> of to 100% avoid KID while using KID.   And while you can get around
> Kid's validation that way, I don't particularly think it's a good idea
> either.   But I thought I'd throw it out there in case you were
> looking for an ugly hack.
>
> What I should have mentioned is that an easier way to get around KID
> in a situation like this is not to use KID at all.  You can use
> Cheetah instead, and get around KID's validity requirement.   Cheetah
> shouldn't care a bit about how broken your HTML is.
>
> Automatic HTML repair sounds like it would be nice, and perhaps it's
> possible for some subset of HTML errors, but I doubt it's really
> feasible unless your HTML is already almost right, and is broken an
> easy to detect way.  It seems like your best choice is to go to the
> source, and see if you can fix that.

I think you are right and I am going to use Cheetah instead of kid. I  
like kid and I like the fact that it forces you to write clean code,  
but it can be a pain when you get part of your html content from a  
third party with a lot of small errors.

I have try to cleanup this code with ElementTidy, but this tool is  
not design to clean up a single string. It did not gave me the result  
expected. For fixing the source this is impossible, the only thing I  
can do with the source is read it. And I don't think the people who  
are producing that source gonna start closing the </p> , </li> or  
other tags who are not really affecting the presentation on their  
browsers.

Thanks for you answer.
-fred-



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to