[xml] [PATCH] Priorities for html-elements.



Hi all,

I have attached a patch for HTMLparser.c which helps the parser
to do better when dealing with extra endtags.

ie.  a </font> won't close an open <td> element. But:
a </td> _will_ close an open <font> element.

This patch also removes the htmlEndClose array because
this is handled by assigning a higher priority to 
the "html", "head" and "body" elements.

What do you think?

/ Jonas Borgström

-- 
Jonas Borgström                  jonas codefactory se
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 10       Cell: +46 (0)70 248 89 58

Attachment: HTMLparser-jborg.diff
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]