[thelist] IE Behaviour to add quotes to <q>

Ken Snyder kendsnyder at gmail.com
Thu Mar 13 10:24:21 CDT 2008


Julian Rickards wrote:
> Hi:
>
> Does anyone know of a little script for IE that will surround < q> text with
> quotation marks?
>
> Jules
>
>   
// untested
var qNodes = document.getElementsByTagName('q');
for (var i = 0, length = qNodes.length; i < length; i++) {
  qNodes[i].innerHTML = '&quot;' + qNodes[i].innerHTML + '&quot;';
}

- Ken Snyder



More information about the thelist mailing list