sitemap: removing language menu namespace
authorFredrik Unger <fred@tree.se>
Fri, 25 Jan 2013 11:06:58 +0000 (12:06 +0100)
committerFredrik Unger <fred@tree.se>
Fri, 25 Jan 2013 11:06:58 +0000 (12:06 +0100)
Removing language menu generation namespace.
It is not needed as it is in html, and namespace confuses and invalidates
the html in the browser, maybe since the attributes were not namespaced.

treecutter/sitemap.py

index a8612f23b9ba9b1c1955bd370af771b59a008b9f..da6660ec44c03ed045e95c1ec42ffb401d63865a 100644 (file)
@@ -103,7 +103,7 @@ class Sitemap():
         return self._tree.menu(lang,page,cssclass)
 
     def lang_menu(self,lang,link):
-        html = ElementMaker(namespace=const.HTML_NS)
+        html = ElementMaker()
         menu = html.ul()
         for l in link.languages():
             isoxml = u"//iso_639_3_entry[@*='"+l+"']"