HTML export - expanding a dive

Gehad Elrobey gehadelrobey at gmail.com
Wed Jun 17 08:58:43 PDT 2015


On Wed, Jun 17, 2015 at 5:13 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

> Hey Gehad,
>
> I know you are focused on this year's GSoC project right now, but I have a
> question about your previous contribution, the HTML exporter...
>
> For me (Firefox 38.0.5, Arch Linux) the expansion by clicking on an entry
> in the dive list doesn't work. I get nothing at all. The Expand All button
> works.
>
> This is what I see in source view:
>
> <ul id="290" ul="<=" onclick="toggleExpantion(event, this)"
> style="padding: 2px 10px;">
>
> What I don't understand about this line is the ul attribute. It doesn't
> appear to exist based on my reading of the standard and when I ask Firefox
> to copy the html what it does seems to indicate that it might be confused
> by that ul attribute as well:
>
> <ul style="padding: 2px 10px;" id="290" onclick="toggleExpantion(event,
> this)" <="" ul="">
>
> see how it creates a '<' attribute here?
>
> Something is definitely wrong there.
>
> Any idea?
>

Hello Dirk,

I couldn't reproduce this on Chromium but I still see the malformed Html it
seems that Chromium is more tolerant to incorrect tags, I have attached a
patch that fixes the tag closing, I hope this will fix the problem.


-- 
regards,

Gehad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150617/da6899cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-HTML-fix-the-unclosed-ul-tag.patch
Type: text/x-patch
Size: 1488 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150617/da6899cb/attachment.bin>


More information about the subsurface mailing list