[daisy] issues with htmlcleaner and <ul>

Wim Van Acker wva at schaubroeck.be
Fri Nov 24 01:57:34 CST 2006


Hi,

I have been able (at last) to create some daisy - HTML which reproduces
some annoying "features" that corrupt your text and bullet structure.
The main problem - as I understand - is that the HTML cleaner leaves it
like it is. So one can't get it right without hacking the HTML ... and
it always happens on a moment when you have no time and just want to
deliver a nice document.

To demonstrate :

1) Create a new empty daisy document.
2) Switch to the HTML tag view
3) Open the attachment "bad-ul-showcase.txt" and copy/paste all the HTML
into the newly created document replacing the initial content.
4) Save.
5) Reopen the document ... and follow the instructions.

Normally manipulating the case (B) <ul> gets you into trouble. Of course
this is a very small document but big enough to demonstrate. It's my
believe this is an issue that should be looked after to avoid end-user
frustration while editing via the wiki, so am I happy to be able to
provide a reproducible description.

Regards,
Wim

ps1.
I have tested this on the http://demo.daisycms.org site

ps2.
No ... the case (B) wasn't a result of me manually playing with HTML 
tags. It sometimes happens while editing and the cleaner doesn't get rid 
of it. But previously I haven't been able to provide a sample.


-------------- next part --------------
<html>
<body>

<p>Hi,</p>

<p>I have created two cases to demonstrate (and hopefully pin-point) the problem
which is causing some frustration.</p>

<p>case (A)</p>

<p>A fresh (new input) bullet list ...&nbsp; that's working OK when adding new
bullets.</p>

<ul>
<li>level one</li>
<li>level one</li>
<ul>
<li>level two</li>
<ul>
<li>level three (*)</li>
</ul>

<li>level two</li>
<ul>
<li>level three</li>
</ul>

<li>level two</li>
<li>level two</li>
</ul>

<li>level one</li>
</ul>

<p>case (B)</p>

<p>A bullet list copied from another document I created this morning (and
changed some text) that's giving a lot of troubles. I can't clean it with the
Daisy editor and I can't say how I got it in the first place - it just happens
while editing. So I have invested some time to isolate the problem. If you look
at the HTML of the bullets below than you see the difference with case (A). And
<em>the html-cleaner leaves it like that so the problem does not get solved
without manual intervention of the HTML</em>. Which is nothing you want an
end-user to do.</p>

<ul>
<li>level one</li>
<li>level one<br/>

<ul>
<li>level two
<ul>
<li>level three (*)</li>
</ul>
</li>
<li>level two<br/>

<ul>
<li>level three</li>
</ul>
</li>
</ul>
</li>
<li>level one</li>
</ul>

<p>Now, to illustrate, just try to create a new "level two" starting with the
cursor after the (*). <br/>
In case (A) ... no problem ... in case (B) ... visually things get screwed up.
Also have a look at the HTML.<br/>
I have the impression it has something todo with missing &lt;/li&gt; that are
not corrected by the html cleaner.&nbsp; But I am not an html expert.</p>

<p>Anyway, I am using FireFox 2.0 on Windows XP and connecting to a Daisy 1.5.1
on Linux.</p>

<p>Feedback from other users is appreciated.</p>

<p>Wim</p>

</body>
</html>


More information about the daisy mailing list