Page MenuHomePhabricator

duplicated pencil icons on some client pages
Closed, ResolvedPublic

Description

Screenshot showing the two pencil icons

On some pages in frwikisource, the pencil icon before the "Edit links" link ("Ajouter des liens") appears twice. I can see this on at least two pages [1][2]. See also the attachment.

[1] https://fr.wikisource.org/wiki/Auteur:Antoine_Louis
[2] https://fr.wikisource.org/wiki/Auteur:Pauline_Guizot


Version: unspecified
Severity: normal
Whiteboard: u=dev c=frontend p=0

Attached:

screenshot.png (58×163 px, 1 KB)

Details

Reference
bz63724

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:09 AM
bzimport set Reference to bz63724.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 15067
on the Italian Wikiquote

Confirmed on the Italian Wikiquote, too:

https://it.wikiquote.org/w/index.php?diff=631895

Attached:

error.png (57×200 px, 2 KB)

I saw this one time in my development environment, but only when hovering the link. I reloaded the page and never saw it again.

I can force the result seen in the screenshots (thanks for them) by changing the HTML from

<li class="wbc-editpage">

<a href="...">Example</a>

</li>

to

<li class="wbc-editpage">

<a href="..."></a>
<a href="...">Example</a>

</li>

Now we have to search for something that plays around with this HTML and sometimes leaves a duplicate anchor tag behind. Any ideas? I don't think we should blame a user script or gadget because I once had the same experience without any additional scripts.

A possible workaround is to change the CSS so it can't display multiple images, even if the HTML is broken, either by using the :empty or the :last-child selector.

.wbc-editpage > a:last-child { ... }
.wbc-editpage > a:last-child:hover { ... }

  • Bug 64825 has been marked as a duplicate of this bug. ***

Created attachment 15307
Inspected HTML of the issue

I was able to do a screenshot of the HTML as it is when this happens.

Attached:

Screenshot_from_2014-05-06_21:55:58.png (619×1 px, 89 KB)

  • Bug 65001 has been marked as a duplicate of this bug. ***
  • This bug has been marked as a duplicate of bug 65001 ***