Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.postload.js

Issue 6022881116946432: Issue 1868 - Create overlays for <img> elements to work around issues with <area> elements (Closed)
Patch Set: Created Jan. 26, 2015, 10:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.postload.js
===================================================================
--- a/include.postload.js
+++ b/include.postload.js
@@ -344,8 +344,10 @@
if (clickHide_activated || clickHideFiltersDialog)
clickHide_deactivate();
- // Add overlays for blockable elements that don't emit mouse events that they can still be selected
- var elts = document.querySelectorAll('object,embed,iframe,frame');
+ // Add overlays for blockable elements that don't emit mouse events that they
+ // can still be selected. While images generally emit mouse events we have
+ // also to add overlays for them, in case <area> elments are used (#1868).
+ var elts = document.querySelectorAll('object,embed,iframe,frame,img');
for(var i=0; i<elts.length; i++)
{
var element = elts[i];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld