Commit aa800392 authored by Fred Drake's avatar Fred Drake

We should only magically infer a namespace based on the container

element if there isn't a prefix in the attribute name.

Fixes http://mail.zope.org/pipermail/zpt/2002-August/003697.html
parent 14324c7d
......@@ -270,7 +270,10 @@ class HTMLTALParser(HTMLParser):
for item in attrs:
key, value = item
key, keybase, keyns = self.fixname(key)
ns = keyns or namens # default to tag namespace
if ':' in key and not keyns:
ns = 0
else:
ns = keyns or namens # default to tag namespace
if ns and ns != 'unknown':
item = (key, value, ns)
if ns == 'tal':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment