W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Tidy generates DIV with 2 STYLE attributes

From: Eric Dortmans <hdo@oce.nl>
Date: Tue, 29 Aug 2000 09:33:07 -0400 (EDT)
To: <html-tidy@w3.org>
Message-ID: <NCBBKAGJMJJPFKCGFDNKIEKICEAA.hdo@oce.nl>
Following HTML fragment (some stripped output of MS HTML filter):

  <p>Bullets:</p>
  <ol style='margin-top:0cm'>
    <ul style='margin-top:0cm'>
  	<li>bullet1</li>
  	<li>bullet2</li>
  	<li>bullet3</li>
    </ul>
  </ol>

Causes Tidy to produce X(HT)ML output containing
a DIV element with 2 STYLE attributes:

  <p>Bullets:</p>
  <div style="margin-left: 2em" style='margin-top:0cm'>
    <ul style='margin-top:0cm'>
	<li>bullet1</li>
	<li>bullet2</li>
	<li>bullet3</li>
    </ul>
  </div>

This causes parse errors in XML parsers.

Eric Dortmans(
hdo@oce.nl
Received on Tuesday, 29 August 2000 11:06:31 GMT

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