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

Re: Can Tidy remove illegal attributes??

From: Arnaud Desitter <arnaud02@users.sourceforge.net>
Date: Tue, 10 Mar 2009 14:42:13 +0000
Message-ID: <a240ddd00903100742q4690f516p6389eedb8d4a379@mail.gmail.com>
To: Valentín <valentin@sanva.net>
Cc: eric.frost@mp2kmag.com, html-tidy@w3.org
Hi,

There are no options so that tidy drops attributes that arev alid but
illegal with respect to the given DTD.
Tidy was design to guess the DTD. If you impose one, then the
resulting document may be non conformant.

The project has been very active in the last few months as I ran
out-of-time for it. Many people want more features but few provide
useful patches.

Regards,


On 10/03/2009, Valentín <valentin@sanva.net> wrote:
> Thanks for the information —and sorry for the delay in my answer... I've
> been busy.
>
> If anybody knows how to fix this problem I will need to search some way by
> my own...
>
> Anybody knows if the project is still active?
>
> Regards.
>
> 2009/2/18 Eric Frost <eric.frost@mp2kmag.com>
>
>
> > Your English is fine.
> >
> > Sorry I understand now. The "type" and "value" attributes of the li
> element were deprecated in HTML 4.01, and are not supported in XHTML 1.0
> Strict DTD.
> >
> > I played with it and can't get it to remove the type and value attributes
> either.
> >
> > I found some discussion about this a while back but don't know if it went
> anywhere --
> > http://markmail.org/message/ntjc75slebjss2rp
> >
> > Sorry can't be more help.
> >
> > Eric
> >
> >
> >
> > From: Valentín
> > Sent: Wednesday, February 18, 2009 9:57 AM
> > To: eric.frost@mp2kmag.com
> > Subject: Re: Can Tidy remove illegal attributes??
> >
> >
> >
> >
> >
> > Hi!
> >
> >
> > > Remove the type and value attributes or something with the <ul> ?
> > >
> >
> > I think it must remove type and value, because these attributes are
> non-strict, and even setting doctype as strict and output-xhtml as true it
> doesn't remove them —and yes, I know drop-propietary-attibutes, but it seems
> to be not involved in this.
> >
> > Sorry if my english is poor, I'm Spanish and my english level is not good
> enought.
> >
> >
> > 2009/2/18 <eric.frost@mp2kmag.com>
> >
> > 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 Tuesday, 10 March 2009 14:49:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:59 GMT