Lines Matching refs:attr
64 * @param {String} attr The attribute to set.
67 setAttribute: function(el, attr, val, ieAttr) {
68 if (el && attr && el.setAttribute) {
69 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
70 el.setAttribute(attr, val, ieAttr);
80 * @param {String} attr The attribute to get.
83 getAttribute: function(el, attr, ieAttr) {
86 if (el && attr && el.getAttribute) {
87 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
88 ret = el.getAttribute(attr, ieAttr);
173 var attr = node.attributes.value;
174 if (!attr) {
175 attr = node[OWNER_DOCUMENT].createAttribute('value');
176 node.setAttributeNode(attr);
179 attr.value = val;