Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Unified Diff: java/org/chromium/distiller/webdocument/WebText.java

Issue 2004883003: Strip "target" attribute from anchor elements (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « java/org/chromium/distiller/DomUtil.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/webdocument/WebText.java
diff --git a/java/org/chromium/distiller/webdocument/WebText.java b/java/org/chromium/distiller/webdocument/WebText.java
index cc2046e7521e9555c1c8cdf81792b88394fa5368..47e97c04c1607f5e191ec31ed19c9dac346153fe 100644
--- a/java/org/chromium/distiller/webdocument/WebText.java
+++ b/java/org/chromium/distiller/webdocument/WebText.java
@@ -66,6 +66,7 @@ public class WebText extends WebElement {
// Make sure links are absolute and IDs are gone.
DomUtil.makeAllLinksAbsolute(clonedRoot);
+ DomUtil.stripTargetAttributes(clonedRoot);
DomUtil.stripIds(clonedRoot);
DomUtil.stripFontColorAttributes(clonedRoot);
DomUtil.stripStyleAttributes(clonedRoot);
« no previous file with comments | « java/org/chromium/distiller/DomUtil.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698