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

Side by Side Diff: components/dom_distiller/core/javascript/is_distillable_trigger.js

Issue 474493003: Fixing small error with is_distilable_trigger.js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Auto Bots Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function() { 5 (function() {
6 var elems = document.querySelectorAll( 6 var elems = document.querySelectorAll(
7 'meta[property="og:type"],meta[name=\\"og:type\\"]'); 7 'meta[property="og:type"],meta[name="og:type"]');
8 for (var i in elems) { 8 for (var i in elems) {
9 if (elems[i].content && elems[i].content.toUpperCase() == 'ARTICLE') { 9 if (elems[i].content && elems[i].content.toUpperCase() == 'ARTICLE') {
10 return true; 10 return true;
11 } 11 }
12 } 12 }
13 var elems = document.querySelectorAll( 13 var elems = document.querySelectorAll(
14 '*[itemtype="http://schema.org/Article"]'); 14 '*[itemtype="http://schema.org/Article"]');
15 for (var i in elems) { 15 for (var i in elems) {
16 if (elems[i].itemscope) { 16 if (elems[i].itemscope) {
17 return true; 17 return true;
18 } 18 }
19 } 19 }
20 return false; 20 return false;
21 })() 21 })()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698