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

Re: Can Tidy remove illegal attributes??

From: Eric Frost <eric.frost@mp2kmag.com>
Date: Wed, 18 Feb 2009 11:05:39 -0600
Message-ID: <090CA13A60AF4437BF6DEE4BB2F5851A@Ericdell>
To: Valentín <valentin@sanva.net>
Cc: <html-tidy@w3.org>
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 Wednesday, 18 February 2009 17:06:20 GMT

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