Showing attachment for Ticket #1776039
File to reproduce the bug
<html>
<head>
<!-- Core + Skin CSS -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/button/assets/button.css">
<!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/menu/assets/menu.css">
<!-- Dependencies -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/element/element-beta-min.js"></script>
<!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/container/container_core-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/menu/menu-min.js"></script>
<!-- Source file -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.3.0/build/button/button-beta-min.js"></script>
</head>
<body>
<div>
<span id="target" class="yuibutton">
<span class="first-child">
<button type="button">Check me!</button>
</span>
</span>
</div>
<p>
<span id="resize" class="yuibutton">
<span class="first-child">
<button type="button">Check me!</button>
</span>
</span>
<p>
<script type="text/javascript">
var target = new YAHOO.widget.Button(
"target", {
type: "button",
label: "some text"
});
var onResizeClick = function() {
var targetLabel = target.get('label');
targetLabel += ', more text';
target.set('label', targetLabel);
};
var resize = new YAHOO.widget.Button(
"resize", {
type: "button",
label: "Resize"
});
resize.subscribe('click', onResizeClick);
</script>
</body>
</html>
Uploaded By: sfbugs
Date: 08/17/07
Size: 1.98 Kb
Name: 241619_test.html
Click here to download the file.
Date: 08/17/07
Size: 1.98 Kb
Name: 241619_test.html
Click here to download the file.