Re: Can Tidy remove illegal attributes??

You said:

<li type="i">hello!</li><li value="500">bye!</li>
results in
<ul><li type="i">hello!</li><li value="500">bye!</li></ul>

I'm not sure I understand. How do you want it to be? Remove the type  
and value attributes or something with the <ul> ?

Anyway, I think the config option you are looking for is  
--drop-proprietary-attributes

http://tidy.sourceforge.net/docs/quickref.html#drop-proprietary-attributes

Eric

__
http://www.mappointpartners.com
http://www.gardenotter.com


Quoting Valentín <valentin@sanva.net>:

> Hello everyone!
>
> I'm new using mailing lists, so my apologizes in advance if I'm doing
> something wrong.
>
> I wish to know if Tidy can remove illegal attributes.
>
> For example, <li type="i">hello!</li><li value="500">bye!</li> results in
> <ul><li type="i">hello!</li><li value="500">bye!</li></ul> even with doctype
> = strict and output-xhtml = true.
>
> Any way to correct this?
>
> Thanks for your time.
>

Received on Wednesday, 18 February 2009 15:32:56 UTC