Bug 795751. Make CSS2Properties stuff work even with pref names that are not identifiers. r=dholbert
authorBoris Zbarsky <bzbarsky@mit.edu>
Mon, 01 Oct 2012 08:45:12 -0400
changeset 108860 144db3479fe37c80e9c92fbd6e1d3471010a7782
parent 108859 1b63db497ca442b68af42627d55d782fb3f89918
child 108861 2d1a365a332043ac3cc4bbc0cc2c216610004ce8
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersdholbert
bugs795751
milestone18.0a1
Bug 795751. Make CSS2Properties stuff work even with pref names that are not identifiers. r=dholbert
dom/bindings/GenerateCSS2PropertiesWebIDL.py
--- a/dom/bindings/GenerateCSS2PropertiesWebIDL.py
+++ b/dom/bindings/GenerateCSS2PropertiesWebIDL.py
@@ -5,17 +5,17 @@
 import sys
 import string
 
 propList = eval(sys.stdin.read())
 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
     # (e.g. on nsComputedDOMStyle).
     props += "  [%s] attribute DOMString %s;\n" % (", ".join(extendedAttrs),
                                                    prop)
 
 idlFile = open(sys.argv[1], "r");