Merge branch 'fix7762' into jquery master. Fixes #7762.