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

Single quoted attributes pre-tidy

From: Jeff Harris <jharris@barbershopbass.com>
Date: Sat, 24 Mar 2007 10:03:47 -0700
Message-ID: <460559F3.8090305@barbershopbass.com>
To: html-tidy@w3.org

I'm passing the output of some CMS through tidy to make sure that it is
completely compliant. The package wraps most of the html tag attributes
in single quotes. When TIDY gets them, it wraps the single quotes inside
double quotes.

<select name='cid'>
<option value='0'>----</option>
<option value='2'> BOD & Committees</option>
<option value='15'>--&nbsp;Chapter Officers&#039; Reports</option>
</select>

turns into
       <select name="'cid'">
        <option value="'0'">
         ----
        </option>
        <option value="'2'">
         BOD &amp; Committees
        </option>
        <option value="'15'">
         --&nbsp;Chapter Officers' Reports
        </option>

Is there a configuration option that will fix/change the single quotes
into double quotes or should I look for some other quote conversion option?

-- 
Jeff Harris
Received on Sunday, 25 March 2007 13:36:45 GMT

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