Commit 8d740e72 authored by Guido van Rossum's avatar Guido van Rossum

Check for unknown TAL and METAL attributes here.

parent 9d0f1e90
......@@ -297,6 +297,12 @@ class TALGenerator:
return newlist
def emitStartElement(self, name, attrlist, taldict, metaldict):
for key in taldict.keys():
if key not in KNOWN_TAL_ATTRIBUTES:
raise TALError("bad TAL attribute: " + `key`)
for key in metaldict.keys():
if key not in KNOWN_METAL_ATTRIBUTES:
raise TALError("bad METAL attribute: " + `key`)
todo = {}
defineMacro = metaldict.get("define-macro")
useMacro = metaldict.get("use-macro")
......
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