Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#1030 closed defect (fixed)

Close Button disappers for Tabcontainer in IE6 Strict Mode

Reported by: prashanth.shivakumar@… Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Tabcontainer close button Cc: bill@…
Blocked By: Blocking:

Description

Close button/icon doesnt seem to appear when using TabContainer? Widget on a page which has IE strict mode enforced.

TrackBack? URL: http://article.gmane.org/gmane.comp.web.dojo.user/10949

Sample TestCase? Page:

===================================================================


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>TabContainer Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

<script type="text/javascript">
	var djConfig = { isDebug: true };
</script>
<script type="text/javascript" src="dojoAjax/dojo.js"></script>
<script type="text/javascript" src="dojoAjax/src/widget/TabContainer.js"></script>
<script type="text/javascript">
	dojo.require("dojo.widget.TabContainer");
	dojo.require("dojo.widget.Tooltip");
	dojo.require("dojo.widget.LinkPane");
	dojo.require("dojo.widget.ContentPane");
</script>


<script type="text/javascript">
function boo(panel, node) {
	node.innerHTML = "Handlers override grabbing from URLs. They run in context of the widget, so 'this' refers to the tab widget.";
}
function testClose(pane,tab) {
  return confirm("Please confirm that you want tab "+tab.label+" closed");
}
</script>
</head>

<body>

	<p>some text here</p>

	<div id="ttabs" dojoType="TabContainer" labelPosition="top" style="width: 100%; height: 10em;"
      selectedTab="tab2" closeButton="tab">
		<div id="ttab1" dojoType="ContentPane" href="tab1.html" label="Tab 1"></div>
		<div id="ttab2" dojoType="ContentPane" href="tab2.html" refreshOnShow="true" label="Tab 2"></div>
		<div dojoType="ContentPane" label="Tab 3" onClose="testClose">
			<h1>I am tab 3</h1>
			<p>And I was already part of the page! That's cool, no?</p>
		</div>
	</div>
	
</body>
</html>

==================================================================

Change History (3)

comment:1 Changed 13 years ago by bill

Milestone: 0.4
Owner: changed from anonymous to bill
Status: newassigned

comment:2 Changed 13 years ago by bill

Resolution: fixed
Status: assignedclosed

Fixed in [4521]

comment:3 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.