Lines Matching refs:attr
66 * @param {String} attr The attribute to set.
69 setAttribute: function(el, attr, val, ieAttr) {
70 if (el && attr && el.setAttribute) {
71 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
72 el.setAttribute(attr, val, ieAttr);
82 * @param {String} attr The attribute to get.
85 getAttribute: function(el, attr, ieAttr) {
88 if (el && attr && el.getAttribute) {
89 attr = Y_DOM.CUSTOM_ATTRIBUTES[attr] || attr;
90 ret = el.getAttribute(attr, ieAttr);
175 var attr = node.attributes.value;
176 if (!attr) {
177 attr = node[OWNER_DOCUMENT].createAttribute('value');
178 node.setAttributeNode(attr);
181 attr.value = val;