Skip to content

Commit

Permalink
Removed case-sensitive .nodeName check.
Browse files Browse the repository at this point in the history
Fixes #5557 - Comparing element.nodeName directly against upper case tag names can cause problems.
  • Loading branch information
scottgonzalez committed Apr 28, 2010
1 parent 670ab81 commit 0aa4c7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/jquery.ui.accordion.js
Expand Up @@ -40,9 +40,7 @@ $.widget("ui.accordion", {
this.element.addClass("ui-accordion ui-widget ui-helper-reset");

// in lack of child-selectors in CSS we need to mark top-LIs in a UL-accordion for some IE-fix
if (this.element[0].nodeName == "UL") {
this.element.children("li").addClass("ui-accordion-li-fix");
}
this.element.children("li").addClass("ui-accordion-li-fix");

this.headers = this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all")
.bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); })
Expand Down

0 comments on commit 0aa4c7f

Please sign in to comment.