Index: java/org/chromium/distiller/webdocument/WebFigure.java |
diff --git a/java/org/chromium/distiller/webdocument/WebFigure.java b/java/org/chromium/distiller/webdocument/WebFigure.java |
index a9d6dbc95698f9d73cb1918520fff7fbdaa8c817..0bb0d2b2330bade2f9df3f969442b0ae73c2fc73 100644 |
--- a/java/org/chromium/distiller/webdocument/WebFigure.java |
+++ b/java/org/chromium/distiller/webdocument/WebFigure.java |
@@ -32,9 +32,7 @@ public class WebFigure extends WebImage { |
@Override |
public String generateOutput(boolean textOnly) { |
Element figcaption = DomUtil.cloneAndProcessTree(figCaption); |
- // TODO(wychen): .textContent should be identical to .innerText |
- // in our use cases, but needs verification. |
- if (textOnly) return DomUtil.javascriptTextContent(figcaption); |
+ if (textOnly) return DomUtil.getInnerText(figcaption); |
Element figure = Document.get().createElement("FIGURE"); |
figure.appendChild(getProcessedNode()); |