Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 6260a76

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(util): added toUpperCase to nodeName
Custom elements do not always follow the upper case rules http://ejohn.org/blog/nodename-case-sensitivity/ fixes #5609. closes #5771.
1 parent d423a65 commit 6260a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
671671
getNearestContentElement: function (element) {
672672
var current = element.parent()[0];
673673
// Look for the nearest parent md-content, stopping at the rootElement.
674-
while (current && current !== $rootElement[0] && current !== document.body && current.nodeName !== 'MD-CONTENT') {
674+
while (current && current !== $rootElement[0] && current !== document.body && current.nodeName.toUpperCase() !== 'MD-CONTENT') {
675675
current = current.parentNode;
676676
}
677677
return current;

0 commit comments

Comments
 (0)