Re: Can Tidy remove illegal attributes??

[email protected]
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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 <[email protected]>:

> 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.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.