Tidy generates DIV with 2 STYLE attributes

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 UTC