Description

if you copy the content of the html rendered page http://moinmo.in/MoinMoinBugs/1.8_GUIEditorDoesNotSupportScriptElement into a new gui editor page you get an expat error.

The same happens when you're using GUI editor in MoinMoin 1.9. It crashes and reports that mismatched tags were spotted.

expaterror_log.txt

Component selection

Details

MoinMoin Version

this wiki

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

After reading the code, I found that the tag '<p>' in the initial text 'Describe page_xxx here' was not properly closed, and it was due to variable _auto_closing_tags on line 41, in formatter/text_html.py.

Therefore, changing

_auto_closing_tags = set(['p'])

to

_auto_closing_tags = set(['nonexist_tag'])

solved this issue.

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.8_GUIEditorExpatError (last edited 2010-01-18 14:35:24 by 116)