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

Unified Diff: include.postload.js

Issue 4870920422293504: Issue 1856 - Fall back to parent HTML element when "Block element" encounters an SVG element (Closed)
Patch Set: Created Jan. 23, 2015, 2:20 p.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
@@ -419,12 +419,12 @@
return;
var target = e.target;
- while (target.parentNode && !isBlockable(target))
+ while (target.parentNode && !(target instanceof HTMLElement && isBlockable(target)))
target = target.parentNode;
if (target == document.documentElement || target == document.body)
target = null;
- if (target && target instanceof HTMLElement)
+ if (target)
{
currentElement = target;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld