derek/yui3-1 — comment on commit b90d3fc725a0a4b62fcc7dd8b3516571fd8582ff
File: src/button/js/core.js line 170
By ericf:

I think it would be cleaner for the `_getLabel()` method to search for the any `"yui3-button-label"` node when trying to find the label of a button. Also seems like it could _always_ use `text` or `value`. I'm not sure I see why `innerHTML` has to be used.

```javascript
_getLabel: function () {
var node = this.getNode(),
tagName = node.get('tagName').toLowerCase();

if (tagName === 'input') {
return node.get('value');
}

return (node.one('.' + Button.CLASS_NAMES.LABEL) || node).get('text');
},
```

I also do not see the need for a seperate `_uiGetLabel()` method, that seem redundant, and this version of `_getLabel()` should probably be the `label` attributes `getter` function.