Lines Matching refs:attr
68 * @param {String} attr The attribute to set.
71 setAttribute: function(el, attr, val, ieAttr) {
72 if (el && attr && el.setAttribute) {
73 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
74 el.setAttribute(attr, val, ieAttr);
84 * @param {String} attr The attribute to get.
87 getAttribute: function(el, attr, ieAttr) {
90 if (el && attr && el.getAttribute) {
91 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
92 ret = el.getAttribute(attr, ieAttr);
177 var attr = node.attributes.value;
178 if (!attr) {
179 attr = node[OWNER_DOCUMENT].createAttribute('value');
180 node.setAttributeNode(attr);
183 attr.value = val;