Edgewall Software

Changeset 460 for trunk/genshi/input.py


Ignore:
Timestamp:
Nov 23, 2006, 6:41:52 PM (17 years ago)
Author:
cmlenz
Message:

Improve handling of incorrectly nested tags in the HTML parser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r458 r460  
    328328            while self._open_tags:
    329329                open_tag = self._open_tags.pop()
     330                self._enqueue(END, QName(open_tag))
    330331                if open_tag.lower() == tag.lower():
    331332                    break
    332                 self._enqueue(END, QName(open_tag))
    333             self._enqueue(END, QName(tag))
    334333
    335334    def handle_data(self, text):
Note: See TracChangeset for help on using the changeset viewer.