{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/5609","labels_url":"https://api.github.com/repos/angular/material/issues/5609/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5609/comments","events_url":"https://api.github.com/repos/angular/material/issues/5609/events","html_url":"https://github.com/angular/material/issues/5609","id":115683558,"number":5609,"title":"BUG: getNearestContentElement in $mdUtil always returns root","user":{"login":"hodeyp","id":1916471,"avatar_url":"https://avatars.githubusercontent.com/u/1916471?v=3","gravatar_id":"","url":"https://api.github.com/users/hodeyp","html_url":"https://github.com/hodeyp","followers_url":"https://api.github.com/users/hodeyp/followers","following_url":"https://api.github.com/users/hodeyp/following{/other_user}","gists_url":"https://api.github.com/users/hodeyp/gists{/gist_id}","starred_url":"https://api.github.com/users/hodeyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodeyp/subscriptions","organizations_url":"https://api.github.com/users/hodeyp/orgs","repos_url":"https://api.github.com/users/hodeyp/repos","events_url":"https://api.github.com/users/hodeyp/events{/privacy}","received_events_url":"https://api.github.com/users/hodeyp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/needs:%20merge","name":"needs: merge","color":"009800"},{"url":"https://api.github.com/repos/angular/material/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"closed","locked":false,"assignee":{"login":"EladBezalel","id":6004537,"avatar_url":"https://avatars.githubusercontent.com/u/6004537?v=3","gravatar_id":"","url":"https://api.github.com/users/EladBezalel","html_url":"https://github.com/EladBezalel","followers_url":"https://api.github.com/users/EladBezalel/followers","following_url":"https://api.github.com/users/EladBezalel/following{/other_user}","gists_url":"https://api.github.com/users/EladBezalel/gists{/gist_id}","starred_url":"https://api.github.com/users/EladBezalel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EladBezalel/subscriptions","organizations_url":"https://api.github.com/users/EladBezalel/orgs","repos_url":"https://api.github.com/users/EladBezalel/repos","events_url":"https://api.github.com/users/EladBezalel/events{/privacy}","received_events_url":"https://api.github.com/users/EladBezalel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/24","html_url":"https://github.com/angular/material/milestones/1.0-rc5","labels_url":"https://api.github.com/repos/angular/material/milestones/24/labels","id":1389110,"number":24,"title":"1.0-rc5","description":"","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":75,"state":"closed","created_at":"2015-11-02T15:34:50Z","updated_at":"2015-11-30T20:50:24Z","due_on":"2015-11-25T06:00:00Z","closed_at":"2015-11-30T20:49:51Z"},"comments":8,"created_at":"2015-11-07T18:33:16Z","updated_at":"2015-11-30T21:34:44Z","closed_at":"2015-11-25T09:03:10Z","body":"I have a number of tooltips in a nested md-content, the positioning is incorrect when the nearest md-content is scrolled. The offending issue is `getNearestContentElement` in $mdUtil.\r\n\r\n```\r\n    getNearestContentElement: function (element) {\r\n      var current = element.parent()[0];\r\n      // Look for the nearest parent md-content, stopping at the rootElement.\r\n      while (current && current !== $rootElement[0] && current !== document.body && current.nodeName !== 'MD-CONTENT {\r\n        current = current.parentNode;\r\n      }\r\n      return current;\r\n    },\r\n```\r\n\r\nas `MD-CONTENT` is caps, it never matches the nearest `md-content`"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/160768648","html_url":"https://github.com/angular/material/issues/5609#issuecomment-160768648","issue_url":"https://api.github.com/repos/angular/material/issues/5609","id":160768648,"user":{"login":"epelc","id":5204642,"avatar_url":"https://avatars.githubusercontent.com/u/5204642?v=3","gravatar_id":"","url":"https://api.github.com/users/epelc","html_url":"https://github.com/epelc","followers_url":"https://api.github.com/users/epelc/followers","following_url":"https://api.github.com/users/epelc/following{/other_user}","gists_url":"https://api.github.com/users/epelc/gists{/gist_id}","starred_url":"https://api.github.com/users/epelc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epelc/subscriptions","organizations_url":"https://api.github.com/users/epelc/orgs","repos_url":"https://api.github.com/users/epelc/repos","events_url":"https://api.github.com/users/epelc/events{/privacy}","received_events_url":"https://api.github.com/users/epelc/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:34:44Z","updated_at":"2015-11-30T21:34:44Z","body":"@EladBezalel I'm suspecting `.toUpperCase` converts `md-content` to `Md-Content` and does nothing if you input `MD-CONTENT`. Can you go on [gitter](https://gitter.im/angular/material) I'd like to get this resolved."}}