Description

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

   1 Traceback (most recent call last):
   2   File "/home/user/workspace/moin-1.8/MoinMoin/request/__init__.py", line 1310, in run
   3     handler(self.page.page_name, self)
   4   File "/home/user/workspace/moin-1.8/MoinMoin/action/edit.py", line 97, in execute
   5     savetext = convert(request, pagename, savetext)
   6   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 1431, in convert
   7     text = convert_tuser(request, pagename).do(tuser)
   8   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 462, in do
   9     self.visit(tuser.documentElement)
  10   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  11     return self.visit_element(node)
  12   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  13     func(node)
  14   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 557, in process_page
  15     self.visit_element(i)
  16   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  17     func(node)
  18   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
  19     self.visit(i)
  20   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  21     return self.visit_element(node)
  22   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  23     func(node)
  24   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
  25     self.visit(i)
  26   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  27     return self.visit_element(node)
  28   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  29     func(node)
  30   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
  31     self.visit(i)
  32   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  33     return self.visit_element(node)
  34   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  35     func(node)
  36   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
  37     self.visit(i)
  38   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  39     return self.visit_element(node)
  40   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 514, in visit_element
  41     func(node)
  42   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 872, in process_div
  43     self.visit(i)
  44   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 408, in visit
  45     return self.visit_element(node)
  46   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 516, in visit_element
  47     self.process_inline(node)
  48   File "/home/user/workspace/moin-1.8/MoinMoin/converter/text_html_text_moin_wiki.py", line 808, in process_inline
  49     raise ConvertError("process_inline: Don't support %s element" % name)
  50 ConvertError: process_inline: Don't support script element
  51 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', 'input' returns this traceback too.

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

Discussion

   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:41:40 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', 'input'):
  10              command = "" # just throw away unsupported elements
  11          else:
  12              raise ConvertError("process_inline: Don't support %s element" % name)

This can be fixed by element_missing.patch.

There are some more to extend:

      elif name in ('font', 'meta', 'script', 'noscript', 'form', 'input', 'select', 'option', 'label'):

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.8_GUIEditorDoesNotSupportScriptElement (last edited 2008-09-20 13:39:16 by ReimarBauer)