W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2009

Re: Can Tidy remove illegal attributes??

From: <eric.frost@mp2kmag.com>
Date: Wed, 18 Feb 2009 10:18:49 -0500
Message-ID: <20090218101849.rrpia92q884g8c4o@mail.mp2kmag.com>
To: Valentín <valentin@sanva.net>
Cc: html-tidy@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:21:38 GMT