Re: .NET Tidy DLL isn't fixing attribute minimization

Charlie <[email protected]>
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Hi Dustin,

The selected="selected" attribute syntax is not required for HTML 
output.  Try XHTML output.  This is not set by default for any version of 
Tidy, including the .NET wrapper.

hth,
Charlie

At 02:01 PM 5/23/2005 -0500, you wrote:
>Hi, I really like your .NET Tidy DLL but ran into a problem with it or
>my settings aren't correct.
>
>Say I want to run this HTML string thru tidy.
>
><select id="FavoritePizzaTopping">
>     <option value="" selected></option>
>     <option value="Extra Cheese">Extra Cheese</option>
>     <option value="Sausage">Sausage</option>
>     <option value="Green Peppers">Green Peppers</option>
></select>
>
>
>With these Tidy.NET settings turned on it is not fixing the attribute
>minimization problem with the selected attribute of the first option in
>the select.
>Tidy.DocumentClass document = new DocumentClass();
>document.ParseString(Content);
>
>document.SetOptBool(Tidy.TidyOptionId.TidyBodyOnly, 1);
>document.SetOptBool(Tidy.TidyOptionId.TidyXhtmlOut,
>1);
>document.SetOptInt(Tidy.TidyOptionId.TidyWrapLen, 255);
>
>document.CleanAndRepair();
>
>Tidy should convert this into <option value=""
>selected="selected"></option>.
>
>If you know a fix could you please email me.
>
>Thanks,
>
>Dustin Michaels



-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
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.