Bug 795751. Make CSS2Properties stuff work even with pref names that are not identifiers. r=dholbert

This commit is contained in:
Boris Zbarsky 2012-10-01 08:45:12 -04:00
parent 2279ce8914
commit 0c92627751

View File

@ -10,7 +10,7 @@ props = ""
for [prop, pref] in propList:
extendedAttrs = ["Throws", "TreatNullAs=EmptyString"]
if pref is not "":
extendedAttrs.append("Pref=%s" % pref)
extendedAttrs.append('Pref="%s"' % pref)
if not prop.startswith("Moz"):
prop = prop[0].lower() + prop[1:]
# Unfortunately, even some of the getters here are fallible