Edit report at https://bugs.php.net/bug.php?id=74493&edit=1
ID: 74493 Updated by: pee...@php.net Reported by: php-bugs-2014-08 at dotancohen dot com Summary: Summary: On page links jump to incorrect anchors if the name contains the target Status: Verified Type: Bug Package: Website problem PHP Version: Irrelevant Assigned To: peehaa Block user comment: N Private report: N New Comment: Jay created a PR for to fix this https://github.com/php/web-php/pull/154 If somebody with powers could review and merge that please. Previous Comments: ------------------------------------------------------------------------ [2017-04-24 08:15:15] requi...@php.net Ah, sorry @peehaa. ------------------------------------------------------------------------ [2017-04-24 08:14:26] requi...@php.net Because it's de-limit-er. https://github.com/php/web-php/blob/master/js/common.js#L411 '.parameters .parameter:contains("' + id + '"), .options .parameter:contains("' + id + '")' ------------------------------------------------------------------------ [2017-04-24 08:04:32] pee...@php.net The links jumps to de*limit*er. Basically the first *limit* param the JS sess. Should probably be made more strict to only jump to exact matches. ------------------------------------------------------------------------ [2017-04-24 07:50:09] php-bugs-2014-08 at dotancohen dot com Description: ------------ On the documentation page for the explode() function, inline links to "limit" scroll the page to the description for "Delimiter". http://php.net/manual/en/function.explode.php Tested in Chrome 52 and Firefox 52 on CentOS 7.3. Test script: --------------- 1) Open web page in web browser: http://php.net/manual/en/function.explode.php 2) Locate on page text 'limit'. Notice that 'limit' is color #336699 which indicates a link. 3) Click link. EXPECTED Page would scroll to 'limit' section. ACTUALLY HAPPENS Page scrolls to 'delimiter' section. Expected result: ---------------- Page would scroll to 'limit' section. Actual result: -------------- Page scrolls to 'delimiter' section. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74493&edit=1 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php