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>

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

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC