public GQuery attr(Properties properties) {\r
for (Element e : elements()) {\r
for (String name : properties.keys()) {\r
- e.setAttribute(styleImpl.fixPropertyName(name), properties.get(name));\r
+ e.setAttribute(name, properties.get(name));\r
}\r
}\r
return this;\r
* Attributes include title, alt, src, href, width, style, etc.\r
*/\r
public String attr(String name) {\r
- return elements.getItem(0).getAttribute(styleImpl.fixPropertyName(name));\r
+ return elements.getItem(0).getAttribute(name);\r
}\r
\r
/**\r
public GQuery attr(String key, Function closure) {\r
for (int i = 0; i < elements.getLength(); i++) {\r
Element e = elements.getItem(i);\r
- e.setAttribute(styleImpl.fixPropertyName(key), String.valueOf(closure.f(e, i)));\r
+ e.setAttribute(key, String.valueOf(closure.f(e, i)));\r
}\r
return this;\r
}\r
* Set a single property to a value, on all matched elements.\r
*/\r
public GQuery attr(String key, String value) {\r
- key = styleImpl.fixPropertyName(key);\r
for (Element e : elements()) {\r
e.setAttribute(key, value);\r
}\r