Skip to content

Commit

Permalink
Treat base as META priority (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitris Grammatikogiannis <dg@dgrammatiko.dev>
  • Loading branch information
rviscomi and dgrammatiko committed Jun 19, 2023
1 parent a0cb9ef commit f878ce6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bigquery/capo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ElementDetectors = {
function isMeta(element) {
return $(element).is('meta:is([charset], [http-equiv], [name=viewport])');
return $(element).is('meta:is([charset], [http-equiv], [name=viewport]), base');
}
function isTitle(element) {
Expand Down
2 changes: 1 addition & 1 deletion capo.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const WEIGHT_COLORS = [
const LOGGING_PREFIX = 'Capo: ';

function isMeta(element) {
return element.matches('meta:is([charset], [http-equiv], [name=viewport])');
return element.matches('meta:is([charset], [http-equiv], [name=viewport]), base');
}

function isTitle(element) {
Expand Down
2 changes: 1 addition & 1 deletion webpagetest/capo.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ElementDetectors = {


function isMeta(element) {
return element.matches('meta:is([charset], [http-equiv], [name=viewport])');
return element.matches('meta:is([charset], [http-equiv], [name=viewport]), base');
}

function isTitle(element) {
Expand Down

0 comments on commit f878ce6

Please sign in to comment.