]>

Description

If you copy and paste the content of http://www.heise.de/ into the gui editor you get a traceback

Traceback (most recent call last):
  File "/home/user/workspace/moin-1.8/MoinMoin/request/__init__.py", line 1310, in run
    handler(self.page.page_name, self)
  File "/home/user/workspace/moin-1.8/MoinMoin/action/edit.py", line 97, in execute
    savetext = convert(request, pagename, savetext)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 1431, in convert
    text = convert_tuser(request, pagename).do(tuser)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 462, in do
    self.visit(tuser.documentElement)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 557, in process_page
    self.visit_element(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
    self.visit(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
    self.visit(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
    self.visit(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
    self.visit(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
    func(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
    self.visit(i)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
    return self.visit_element(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 516, in visit_element
    self.process_inline(node)
  File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 808, in process_inline
    raise ConvertError("process_inline: Don't support %s element" % name)
ConvertError: process_inline: Don't support script element
2008-09-20 13:09:59,275 INFO MoinMoin.server.server_standalone:284 127.0.0.1 "GET /GuiTest?action=raw HTTP/1.1" 404 -
traceback.txt

The elements 'noscript', 'form' returns this traceback too.

Component selection

  • text_html_text_moin_wiki

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

Discussion

This can be fixed by

Toggle line numbers
   1 diff -r 7799099c01cf MoinMoin/converter/text_html_text_moin_wiki.py
   2 --- a/MoinMoin/converter/text_html_text_moin_wiki.py    Sat Sep 20 10:38:38 2008 +0200
   3 +++ b/MoinMoin/converter/text_html_text_moin_wiki.py    Sat Sep 20 13:19:06 2008 +0200
   4 @@ -802,7 +802,7 @@
   5              command = ",,"
   6          elif name == 'sup':
   7              command = "^"
   8 -        elif name in ('font', 'meta', ):
   9 +        elif name in ('font', 'meta', 'script', 'noscript', 'form'):
  10              command = "" # just throw away unsupported elements
  11          else:
  12              raise ConvertError("process_inline: Don't support %s element" % name)
element_missing.patch.

Plan

  • Priority:
  • Assigned to:
  • Status:

CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.8_GUIEditorDoesNotSupportScriptElement (last edited 2008-09-20 11:21:55 by UserName)

-------------------------------------------------------------------------------- not well-formed (invalid token): line 438, column 32