Accordion: Fixed visual test for dl markup.

Fixes #5329 - Nested Accordion header is not lined up properly.
This commit is contained in:
Scott González 2010-03-14 19:05:59 +00:00
parent 385269e3ea
commit 936a934d6d

View File

@ -12,7 +12,12 @@
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script> <script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("dl").accordion() $("dl").accordion({
change: function(event, ui) {
console.log("new: " + ui.newContent.text());
console.log("old: " + ui.oldContent.text());
}
});
}); });
</script> </script>
</head> </head>
@ -23,10 +28,10 @@
<dd> <dd>
Accordion Content 1 Accordion Content 1
<dl> <dl>
<dt>Term 1</dt> <dt><a href="#">Term 1</a></dt>
<dt>Definition 1</dt> <dd>Definition 1</dd>
<dt>Term 2</dt> <dt><a href="#">Term 2</a></dt>
<dt>Definition 2</dt> <dd>Definition 2</dd>
</dl> </dl>
</dd> </dd>
<dt><a href="#">Accordion Header 2</a></dt> <dt><a href="#">Accordion Header 2</a></dt>
@ -35,7 +40,7 @@
</dd> </dd>
<dt><a href="#">Accordion Header 3</a></dt> <dt><a href="#">Accordion Header 3</a></dt>
<dd> <dd>
Accordion Content 2 Accordion Content 3
</dd> </dd>
</dl> </dl>