minad / olelo

Wiki with git backend
MIT License
241 stars 44 forks source link

XML parsing error on edit page #24

Closed tg-x closed 14 years ago

tg-x commented 14 years ago

after modifying attributes I get this error: (with latest git)

XML Parsing Error: not well-formed
<option value="orgmode" selected>

should be selected="selected", there's a similar error for the checked attribute of checkboxes

minad commented 14 years ago

seems to be a broken libxml version. please confirm:

http://github.com/minad/olelo/commit/6ee25db8d754e75de04781377d835986b54b30f8

tg-x commented 14 years ago

yup, that was it, works after upgrading libxml

tg-x commented 14 years ago

although I have problems with the content type now, when I try to load a page I get only the xml tree and this error:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

(so I have to force text/html in degrade_mime_type.rb as a workaround)

minad commented 14 years ago

which browser do you use? is the css loaded? the degrade_mime_type middleware is there to change the mime type to text/html for old browsers.

tg-x commented 14 years ago

firefox, but tried in chrome as well, same result, I only get the xml tree, no css

(yes I know why it is there, I just use it to force html as a workaround until this is fixed)

tg-x commented 14 years ago

nevermind, it works now (I had my library path set incorrectly, so it still used the old libxml, works now with the new lib)