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

Unified Diff: dart/site/try/src/shadow_root.dart

Issue 274563011: Ignore non-content divs in htmlToText. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/shadow_root.dart
diff --git a/dart/site/try/src/shadow_root.dart b/dart/site/try/src/shadow_root.dart
index e1cd9a1658ed4cb3d8d2120b5daf0b26068cd4bd..b14afc6594e29495a7d56e8bf23ab8afc0d94368 100644
--- a/dart/site/try/src/shadow_root.dart
+++ b/dart/site/try/src/shadow_root.dart
@@ -49,6 +49,7 @@ void removeShadowRootPolyfill(Element root) {
String getText(Element node) {
if (ShadowRoot.supported) return node.text;
StringBuffer buffer = new StringBuffer();
- htmlToText(node, buffer, new TrySelection.empty(node));
+ htmlToText(
+ node, buffer, new TrySelection.empty(node), treatRootAsInline: true);
return '$buffer';
}
« no previous file with comments | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698