Ticket #2531820 (closed defect)

Reporter


Eric Ferraiuolo
Opened: 02/27/12
Last modified: 04/17/12
Status: closed
Type: defect
Resolution: fixed

Owner


Derek Gathright
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Support nested button structures
Description:

Y.Plugin.Button should support nested button structures like:

<button class="yui3-button">
<span class="icon"></span>
<span class="yui3-button-label">Foo</span>
</button>

Currently this isn't supported because setting the `label` will blow away all children nodes and replace it with the new text.

Type: defect Observed in Version: development master
Component: Button Severity: S3 (normal)
Assigned To: Derek Gathright Target Release: 3.5.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

var button = Y.Node.create('<button><span class="icon"></span><span class="yui3-button-label">Foo</span></button>');

button.plug(Y.Plugin.Button);
button.set('label', 'Foo');
button.one('.icon') // => null

Change History

Derek Gathright

YUI Developer

Posted: 03/27/12
  • milestone changed to 3.5.0
  • status changed from new to checkedin

Derek Gathright

YUI Developer

Posted: 03/27/12

Jenny Donnelly

YUI Developer

Posted: 04/17/12
  • resolution changed to fixed
  • status changed from checkedin to closed

Closing out bugs checked in to 3.5.0.