diff --git a/r2/r2/public/static/js/policies.js b/r2/r2/public/static/js/policies.js index 4410c6dd6..274fc7c39 100644 --- a/r2/r2/public/static/js/policies.js +++ b/r2/r2/public/static/js/policies.js @@ -69,7 +69,8 @@ r.ui.TOCScroller = Backbone.View.extend({ }, _tocFor: function($heading) { - return this.$toc.find('.' + $heading.attr('id')).children('a') + // heading ids can have periods in them, so we'll use getElementsByClassName :( + return $(this.$toc[0].getElementsByClassName($heading.attr('id'))).children('a') }, _updateProgress: function() {