Can Tidy remove illegal attributes??

View: New views
5 Messages — Rating Filter:   Alert me  

Can Tidy remove illegal attributes??

by #V[Á]lentín :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: Can Tidy remove illegal attributes??

by Eric Frost :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>:

> 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.
>




Parent Message unknown Re: Can Tidy remove illegal attributes??

by Eric Frost :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
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@...>

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@...>:


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.



Parent Message unknown Can Tidy remove illegal attributes??

by #V[Á]lentín :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>

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@...
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@...>

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@...>:


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.



Re: Can Tidy remove illegal attributes??

by Arnaud Desitter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...>
>
>
> > 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@...
> > 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@...>
> >
> > 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@...>:
> >
> >
> > 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.
> >
>
>
>