From ecb4fd21936872a3c4513c3cf3d7164384cc0dee Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 6 Jul 2018 17:19:15 -0400 Subject: [PATCH] HTML validation: Rename custom on-page attribute to data-on-page. Signed-off-by: Anders Kaseorg --- static/js/portico/landing-page.js | 2 +- templates/zerver/landing_nav.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js index 2bc4caf16f..1d5790ec08 100644 --- a/static/js/portico/landing-page.js +++ b/static/js/portico/landing-page.js @@ -204,7 +204,7 @@ var events = function () { // pop the last element to get the current section (eg. `features`). var location = window.location.pathname.replace(/\/#*$/, "").split(/\//).pop(); - $("[on-page='" + location + "']").addClass("active"); + $("[data-on-page='" + location + "']").addClass("active"); $("body").click(function (e) { var $e = $(e.target); diff --git a/templates/zerver/landing_nav.html b/templates/zerver/landing_nav.html index 3095a0190d..fc71a03cba 100644 --- a/templates/zerver/landing_nav.html +++ b/templates/zerver/landing_nav.html @@ -11,22 +11,22 @@