{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/16441","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/16441/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/16441/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/16441/events","html_url":"https://github.com/twbs/bootstrap/issues/16441","id":74079668,"number":16441,"title":"ScrollSpy works only on the body tag?","user":{"login":"shadowii","id":593233,"avatar_url":"https://avatars.githubusercontent.com/u/593233?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowii","html_url":"https://github.com/shadowii","followers_url":"https://api.github.com/users/shadowii/followers","following_url":"https://api.github.com/users/shadowii/following{/other_user}","gists_url":"https://api.github.com/users/shadowii/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowii/subscriptions","organizations_url":"https://api.github.com/users/shadowii/orgs","repos_url":"https://api.github.com/users/shadowii/repos","events_url":"https://api.github.com/users/shadowii/events{/privacy}","received_events_url":"https://api.github.com/users/shadowii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-07T18:20:29Z","updated_at":"2015-05-07T18:52:54Z","closed_at":"2015-05-07T18:52:54Z","body":"I've got an example here: http://jsfiddle.net/03sv47av/\r\n\r\nAs is, scrollspy will set up, but will not react to scrolling. But if you cut all the attributes from the first div and paste them to the body tag and re-run the example, scrollspy works perfectly.  \r\n\r\nYou'll need to inspect the nav elements with your browser dev tools. When it works, the active classes will be dynamically applied as you scroll. \r\n\r\nI've reread the docs about a zillion times now, and I can't seem to pinpoint where I'm going wrong.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/99977767","html_url":"https://github.com/twbs/bootstrap/issues/16441#issuecomment-99977767","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/16441","id":99977767,"user":{"login":"cvrebert","id":419884,"avatar_url":"https://avatars.githubusercontent.com/u/419884?v=3","gravatar_id":"","url":"https://api.github.com/users/cvrebert","html_url":"https://github.com/cvrebert","followers_url":"https://api.github.com/users/cvrebert/followers","following_url":"https://api.github.com/users/cvrebert/following{/other_user}","gists_url":"https://api.github.com/users/cvrebert/gists{/gist_id}","starred_url":"https://api.github.com/users/cvrebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvrebert/subscriptions","organizations_url":"https://api.github.com/users/cvrebert/orgs","repos_url":"https://api.github.com/users/cvrebert/repos","events_url":"https://api.github.com/users/cvrebert/events{/privacy}","received_events_url":"https://api.github.com/users/cvrebert/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T18:52:54Z","updated_at":"2015-05-07T18:52:54Z","body":"You can scrollspy on elements other than `<body>`. There's an example of doing this in the docs, and it works: http://getbootstrap.com/javascript/#scrollspy-examples\r\nHere's another one using pills instead of a navbar: http://jsfiddle.net/6normhda/\r\nFor personal troubleshooting help, please use StackOverflow; see https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md#using-the-issue-tracker"}}