Correct me if I'm wrong, but I think around line 132 in botstrap.js there is a bug:

...
bootstrapAnchor: function (element) {
  element.validAnchor = element.nodeName === 'A' && (location.hostname === element.hostname || !element.hostname) && element.hash.replace(/#/,'').length;
  element.scrollTo = function(event) {
    var attr = 'id';
    var $target = $(element.hash);
    if (!$target.length) {
      attr = 'name';
      $target = $('[name="' + element.hash.replace('#', '') + '"');
    }
...

The selector for $target does not have closing square bracket.

Comments

psha’s picture

Status: Active » Needs review
psha’s picture

Status: Needs review » Active
markhalliwell’s picture

Status: Active » Fixed

  • Mark Carver committed cc4fd97 on 7.x-3.x
    Issue #2344701 by psha: Fixed Target selector bug in javscript anchor...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.