#49830 [Ver->Asn]: Multiple 'Report a Bug' links

From: Date: Mon, 12 Oct 2009 10:16:47 +0000
Subject: #49830 [Ver->Asn]: Multiple 'Report a Bug' links
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6159@lists.php.net to get a copy of this message
ID: 49830 Updated by: bjori@php.net Reported By: joshua dot brickner at mac dot com -Status: Verified +Status: Assigned Bug Type: Website problem Operating System: Mac OS X PHP Version: 5.3.0 -Assigned To: +Assigned To: aharvey New Comment: Adam: You have karma for web/php now, feel free to commit Previous Comments: ------------------------------------------------------------------------ [2009-10-12 03:41:23] aharvey@php.net (Flipping the category to "Website problem", since it is.) OK, the links are being generated because we have h5.title elements within the format parameter description. The report a bug links are attached to the parent, which results in the mess that we see at the top of the parameter description and a bunch of togglers on the h5s that don't really do what you expect for much the same reason. There are two ways to fix this, both of which basically involve tweaking the selector we use to attach the bug report and toggler elements, which is currently .refsect1 .title: 1. Change it to only match .title elements that are immediate children of a .refsect; ie .refsect1 > .title 2. Change it to only match h3.title elements; ie .refsect1 h3.title I've gone for the latter approach for now. It would be possible to support collapsing and reporting bugs on the h5.title elements as well, but it would require another code path, and frankly, I think it's uncommon enough in the PHP manual that it's unnecessary -- after all, users can still collapse the parameter block as a whole. Patch against current web/php trunk: http://www.adamharvey.name/patches/bug-49830-report-bug.patch ------------------------------------------------------------------------ [2009-10-12 03:18:51] aharvey@php.net Confirmed. I won't assign this to myself, since I don't have commit rights for the web tree, but I'll cook up a patch shortly for this, since I touched that bit of Javascript last. ------------------------------------------------------------------------ [2009-10-10 03:04:13] joshua dot brickner at mac dot com Description: ------------ This bug is best described with this screenshot: http://imgur.com/BmzIx.png Reproduce code: --------------- go to this page http://us3.php.net/manual/en/function.money-format.php Expected result: ---------------- One 'Report a Bug' link Actual result: -------------- Several 'Report a Bug' links ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49830&edit=1

« previous php.webmaster (#6159) next »