Lines 264-282
Link Here
|
264 |
if (this.attrNodes == null) |
264 |
if (this.attrNodes == null) |
265 |
return null; // no attribute |
265 |
return null; // no attribute |
266 |
|
266 |
|
267 |
final Attr attr = findAttributeNode(name); |
267 |
return findAttributeNode(name); |
268 |
if (attr != null) |
|
|
269 |
return attr; |
270 |
|
271 |
String implied = getDefaultValue(name, null); |
272 |
if (implied != null) { |
273 |
Attr createdAttribute = getOwnerDocument().createAttribute(name); |
274 |
createdAttribute.setNodeValue(implied); |
275 |
((AttrImpl) createdAttribute).setOwnerElement(this); |
276 |
return createdAttribute; |
277 |
} |
278 |
|
279 |
return null; // not found |
280 |
} |
268 |
} |
281 |
|
269 |
|
282 |
/** |
270 |
/** |