From b463d0b8a941560f7252ebbd546ef405b6ee3a60 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 8 Feb 2018 10:17:42 -0500 Subject: [PATCH 1/9] update validators --- .../class-amp-allowed-tags-generated.php | 414 +++++++++++++++++- 1 file changed, 405 insertions(+), 9 deletions(-) diff --git a/includes/sanitizers/class-amp-allowed-tags-generated.php b/includes/sanitizers/class-amp-allowed-tags-generated.php index 1d13a277ec6..30e232001d9 100644 --- a/includes/sanitizers/class-amp-allowed-tags-generated.php +++ b/includes/sanitizers/class-amp-allowed-tags-generated.php @@ -13,8 +13,8 @@ */ class AMP_Allowed_Tags_Generated { - private static $spec_file_revision = 527; - private static $minimum_validator_revision_required = 265; + private static $spec_file_revision = 566; + private static $minimum_validator_revision_required = 314; private static $allowed_tags = array( 'a' => array( @@ -30,6 +30,7 @@ class AMP_Allowed_Tags_Generated { 'allow_relative' => true, 'allowed_protocol' => array( 'ftp', + 'geo', 'http', 'https', 'mailto', @@ -132,6 +133,7 @@ class AMP_Allowed_Tags_Generated { 'noloading' => array( 'value' => '', ), + 'rtc-config' => array(), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -171,6 +173,7 @@ class AMP_Allowed_Tags_Generated { 'noloading' => array( 'value' => '', ), + 'rtc-config' => array(), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -202,6 +205,48 @@ class AMP_Allowed_Tags_Generated { 'spec_url' => 'https://www.ampproject.org/docs/reference/components/amp-ad', ), ), + array( + 'attr_spec_list' => array( + 'alt' => array(), + 'data-enable-refresh' => array( + 'dispatch_key' => 2, + 'mandatory' => true, + 'value' => '', + ), + 'json' => array(), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + 'src' => array( + 'blacklisted_value_regex' => '__amp_source_origin', + 'value_url' => array( + 'allow_relative' => true, + 'allowed_protocol' => array( + 'https', + ), + ), + ), + 'type' => array( + 'mandatory' => true, + ), + ), + 'tag_spec' => array( + 'also_requires_tag_warning' => array( + 'amp-ad extension .js script', + ), + 'disallowed_ancestor' => array( + 'amp-app-banner', + 'amp-fx-flying-carpet', + 'amp-lightbox', + ), + 'requires_extension' => array( + 'amp-ad', + ), + 'spec_name' => 'amp-ad with data-enable-refresh attribute', + 'spec_url' => 'https://www.ampproject.org/docs/reference/components/amp-ad', + ), + ), ), 'amp-analytics' => array( array( @@ -342,6 +387,9 @@ class AMP_Allowed_Tags_Generated { 'noloading' => array( 'value' => '', ), + 'preload' => array( + 'value_regex_casei' => '(auto|metadata|none|)', + ), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -423,6 +471,25 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-bind-macro' => array( + array( + 'attr_spec_list' => array( + 'arguments' => array(), + 'expression' => array( + 'mandatory' => true, + ), + 'id' => array( + 'mandatory' => true, + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-bind', + ), + 'spec_url' => 'https://www.ampproject.org/docs/reference/components/amp-bind', + ), + ), + ), 'amp-brid-player' => array( array( 'attr_spec_list' => array( @@ -482,6 +549,27 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-byside-content' => array( + array( + 'attr_spec_list' => array( + 'data-label' => array( + 'mandatory' => true, + ), + 'data-webcare-id' => array( + 'mandatory' => true, + ), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-byside-content', + ), + ), + ), + ), 'amp-call-tracking' => array( array( 'attr_spec_list' => array( @@ -595,6 +683,7 @@ class AMP_Allowed_Tags_Generated { 'noloading' => array( 'value' => '', ), + 'rtc-config' => array(), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -634,6 +723,7 @@ class AMP_Allowed_Tags_Generated { 'noloading' => array( 'value' => '', ), + 'rtc-config' => array(), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -739,6 +829,31 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-facebook-page' => array( + array( + 'attr_spec_list' => array( + 'data-href' => array( + 'mandatory' => true, + 'value_url' => array( + 'allow_relative' => false, + 'allowed_protocol' => array( + 'http', + 'https', + ), + ), + ), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-facebook-page', + ), + ), + ), + ), 'amp-fit-text' => array( array( 'attr_spec_list' => array( @@ -866,9 +981,7 @@ class AMP_Allowed_Tags_Generated { array( 'attr_spec_list' => array( '[src]' => array(), - 'allow' => array( - 'value_regex' => 'geolocation|fullscreen|payment|transparency', - ), + 'allow' => array(), 'allowfullscreen' => array( 'value' => '', ), @@ -1209,6 +1322,25 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-mathml' => array( + array( + 'attr_spec_list' => array( + 'data-formula' => array( + 'mandatory' => true, + ), + 'inline' => array(), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-mathml', + ), + ), + ), + ), 'amp-nexxtv-player' => array( array( 'attr_spec_list' => array( @@ -1231,7 +1363,6 @@ class AMP_Allowed_Tags_Generated { ), ), ), - 'data-seek-to' => array(), 'data-streamtype' => array( 'value_regex' => 'album|audio|live|playlist|playlist-marked|video', ), @@ -1295,6 +1426,7 @@ class AMP_Allowed_Tags_Generated { 'amp-pinterest' => array( array( 'attr_spec_list' => array( + 'alt' => array(), 'data-do' => array( 'mandatory' => true, ), @@ -1314,6 +1446,7 @@ class AMP_Allowed_Tags_Generated { 'amp-pixel' => array( array( 'attr_spec_list' => array( + 'allow-ssr-img' => array(), 'media' => array(), 'noloading' => array( 'value' => '', @@ -1433,9 +1566,30 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-riddle-quiz' => array( + array( + 'attr_spec_list' => array( + 'data-riddle-id' => array( + 'mandatory' => true, + 'value_regex' => '[0-9]+', + ), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-riddle-quiz', + ), + 'spec_url' => 'https://www.ampproject.org/docs/reference/components/amp-riddle-quiz', + ), + ), + ), 'amp-selector' => array( array( 'attr_spec_list' => array( + '[disabled]' => array(), '[selected]' => array(), 'disabled' => array( 'value' => '', @@ -1600,6 +1754,7 @@ class AMP_Allowed_Tags_Generated { 'id' => array( 'mandatory' => true, ), + 'overridable' => array(), 'src' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'value_url' => array( @@ -2040,6 +2195,25 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-wistia-player' => array( + array( + 'attr_spec_list' => array( + 'data-media-hashed-id' => array( + 'mandatory' => true, + 'value_regex' => '[0-9a-zA-Z]+', + ), + 'media' => array(), + 'noloading' => array( + 'value' => '', + ), + ), + 'tag_spec' => array( + 'requires_extension' => array( + 'amp-wistia-player', + ), + ), + ), + ), 'amp-youtube' => array( array( 'attr_spec_list' => array( @@ -2048,8 +2222,10 @@ class AMP_Allowed_Tags_Generated { 'credentials' => array( 'value_regex_casei' => '(include|omit)', ), + 'data-live-channelid' => array( + 'value_regex' => '[^=/?:]+', + ), 'data-videoid' => array( - 'mandatory' => true, 'value_regex' => '[^=/?:]+', ), 'media' => array(), @@ -2601,7 +2777,6 @@ class AMP_Allowed_Tags_Generated { 'attr_spec_list' => array( 'align' => array(), 'submit-success' => array( - 'dispatch_key' => 1, 'mandatory' => true, ), ), @@ -2610,11 +2785,25 @@ class AMP_Allowed_Tags_Generated { 'spec_name' => 'FORM > DIV [submit-success]', ), ), + array( + 'attr_spec_list' => array( + 'align' => array(), + 'submit-success' => array( + 'mandatory' => true, + ), + 'template' => array( + 'mandatory' => true, + ), + ), + 'tag_spec' => array( + 'mandatory_parent' => 'form', + 'spec_name' => 'FORM > DIV [submit-success][template]', + ), + ), array( 'attr_spec_list' => array( 'align' => array(), 'submit-error' => array( - 'dispatch_key' => 1, 'mandatory' => true, ), ), @@ -2623,6 +2812,21 @@ class AMP_Allowed_Tags_Generated { 'spec_name' => 'FORM > DIV [submit-error]', ), ), + array( + 'attr_spec_list' => array( + 'align' => array(), + 'submit-error' => array( + 'mandatory' => true, + ), + 'template' => array( + 'mandatory' => true, + ), + ), + 'tag_spec' => array( + 'mandatory_parent' => 'form', + 'spec_name' => 'FORM > DIV [submit-error][template]', + ), + ), ), 'dl' => array( array( @@ -4475,6 +4679,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array(), 'hreflang' => array(), 'media' => array(), @@ -4500,6 +4705,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'mandatory' => true, @@ -4536,6 +4742,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array( 'blacklisted_value_regex' => '__amp_source_origin', 'mandatory' => true, @@ -4594,6 +4801,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array( 'mandatory' => true, ), @@ -4619,6 +4827,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array( 'mandatory' => true, ), @@ -4642,6 +4851,7 @@ class AMP_Allowed_Tags_Generated { 'value_casei' => 'utf-8', ), 'color' => array(), + 'crossorigin' => array(), 'href' => array( 'mandatory' => true, ), @@ -5033,6 +5243,19 @@ class AMP_Allowed_Tags_Generated { 'spec_name' => 'meta name=amp-google-clientid-id-api', ), ), + array( + 'attr_spec_list' => array( + 'name' => array( + 'dispatch_key' => 2, + 'mandatory' => true, + 'value_casei' => 'amp-ad-doubleclick-sra', + ), + ), + 'tag_spec' => array( + 'mandatory_parent' => 'head', + 'spec_name' => 'meta name=amp-ad-doubleclick-sra', + ), + ), array( 'attr_spec_list' => array( 'content' => array(), @@ -5185,6 +5408,22 @@ class AMP_Allowed_Tags_Generated { 'spec_url' => 'https://www.ampproject.org/docs/reference/spec#html-tags', ), ), + array( + 'attr_spec_list' => array( + 'content' => array( + 'mandatory' => true, + ), + 'name' => array( + 'dispatch_key' => 2, + 'mandatory' => true, + 'value_casei' => 'amp-ad-enable-refresh', + ), + ), + 'tag_spec' => array( + 'mandatory_ancestor' => 'head', + 'spec_name' => 'meta name=amp-ad-enable-refresh', + ), + ), ), 'metadata' => array( array( @@ -6121,6 +6360,31 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-access-scroll', + 'requires_usage' => 3, + ), + 'requires_extension' => array( + 'amp-access', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -6515,6 +6779,27 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-byside-content', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -6692,6 +6977,27 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-facebook-page', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -6784,6 +7090,28 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-fx-collection', + 'requires_usage' => 3, + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -7144,6 +7472,27 @@ class AMP_Allowed_Tags_Generated { 'unique_warning' => true, ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-mathml', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -7343,6 +7692,27 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-riddle-quiz', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -7682,6 +8052,27 @@ class AMP_Allowed_Tags_Generated { ), ), ), + array( + 'attr_spec_list' => array( + 'async' => array( + 'mandatory' => true, + 'value' => '', + ), + 'nonce' => array(), + 'type' => array( + 'value_casei' => 'text/javascript', + ), + ), + 'tag_spec' => array( + 'extension_spec' => array( + 'allowed_versions' => array( + '0.1', + 'latest', + ), + 'name' => 'amp-wistia-player', + ), + ), + ), array( 'attr_spec_list' => array( 'async' => array( @@ -8410,6 +8801,8 @@ class AMP_Allowed_Tags_Generated { 'tag_spec' => array( 'disallowed_ancestor' => array( 'template', + 'form > div [submit-success][template]', + 'form > div [submit-error][template]', ), 'requires_extension' => array( 'amp-mustache', @@ -9459,6 +9852,9 @@ class AMP_Allowed_Tags_Generated { 'amp-access-show' => array(), 'amp-access-style' => array(), 'amp-access-template' => array(), + 'amp-fx' => array( + 'value_casei' => 'parallax', + ), 'aria-activedescendant' => array(), 'aria-atomic' => array(), 'aria-autocomplete' => array(), From 312e2ca9dc1c1b39b47cdc1f56968fabe6add44f Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 11:59:34 -0500 Subject: [PATCH 2/9] Add a test for amp-mathml --- tests/test-tag-and-attribute-sanitizer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 824b8164d2b..5146ed7bfa1 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -165,6 +165,12 @@ public function get_body_data() { array( 'amp-izlesene' ), ), + 'amp-mathml' => array( + '', + null, // No change. + array( 'amp-mathml' ), + ), + 'amp-nexxtv-player' => array( '', null, // No change. From 3426155a68fec015db43106e357b11e801d90c3b Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:11:30 -0500 Subject: [PATCH 3/9] update test formula --- tests/test-tag-and-attribute-sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 5146ed7bfa1..559096cf527 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -166,7 +166,7 @@ public function get_body_data() { ), 'amp-mathml' => array( - '', + '', null, // No change. array( 'amp-mathml' ), ), From 3aae58f813d1fbae15d535e82a771c612393540d Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:13:50 -0500 Subject: [PATCH 4/9] add test for amp-riddle-quiz --- tests/test-tag-and-attribute-sanitizer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 559096cf527..175a21c7ac8 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -171,6 +171,12 @@ public function get_body_data() { array( 'amp-mathml' ), ), + 'amp-riddle-quiz' => array( + '', + null, // No change. + array( 'amp-riddle-quiz' ), + ), + 'amp-nexxtv-player' => array( '', null, // No change. From e23d9f1e7decd79b998d5083233af5f5779f3280 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:17:22 -0500 Subject: [PATCH 5/9] add test for amp-wistia-player --- tests/test-tag-and-attribute-sanitizer.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 175a21c7ac8..236f07271e9 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -165,18 +165,24 @@ public function get_body_data() { array( 'amp-izlesene' ), ), - 'amp-mathml' => array( + 'amp-mathml' => array( '', null, // No change. array( 'amp-mathml' ), ), - 'amp-riddle-quiz' => array( + 'amp-riddle-quiz' => array( '', null, // No change. array( 'amp-riddle-quiz' ), ), + 'amp-wistia-player' => array( + '', + null, // No change. + array( 'amp-wistia-player' ), + ), + 'amp-nexxtv-player' => array( '', null, // No change. From 5b2510aa0a8acde13af061439afe98df6515a998 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:30:58 -0500 Subject: [PATCH 6/9] add test for amp-byside-content, amp-bind-macro & amp-facebook-page --- tests/test-tag-and-attribute-sanitizer.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 236f07271e9..080b87c31eb 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -183,6 +183,24 @@ public function get_body_data() { array( 'amp-wistia-player' ), ), + 'amp-byside-content' => array( + '', + null, // No change. + array( 'amp-byside-content' ), + ), + + 'amp-bind-macro' => array( + '', + null, // No change. + array( 'amp-bind' ), + ), + + 'amp-facebook-page' => array( + '', + null, // No change. + array( 'amp-facebook' ), + ), + 'amp-nexxtv-player' => array( '', null, // No change. From f4c91b63f697b9e43ac696d53522c4a460c90f13 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:34:23 -0500 Subject: [PATCH 7/9] update amp-facebook-page test --- tests/test-tag-and-attribute-sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 080b87c31eb..8a5fb31db9f 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -196,7 +196,7 @@ public function get_body_data() { ), 'amp-facebook-page' => array( - '', + '', null, // No change. array( 'amp-facebook' ), ), From df824d7a98606d7257726d6c8bd661252f307d11 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:34:49 -0500 Subject: [PATCH 8/9] remove amp-facebook-page test - not yet in production? --- tests/test-tag-and-attribute-sanitizer.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index 8a5fb31db9f..d868873cb66 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -195,12 +195,6 @@ public function get_body_data() { array( 'amp-bind' ), ), - 'amp-facebook-page' => array( - '', - null, // No change. - array( 'amp-facebook' ), - ), - 'amp-nexxtv-player' => array( '', null, // No change. From e973cf7381f3a4bffd4ab2ac353da99bd148ec4c Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 9 Feb 2018 13:38:09 -0500 Subject: [PATCH 9/9] whitespace/alignment --- tests/test-tag-and-attribute-sanitizer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-tag-and-attribute-sanitizer.php b/tests/test-tag-and-attribute-sanitizer.php index d868873cb66..5d4a0656ee8 100644 --- a/tests/test-tag-and-attribute-sanitizer.php +++ b/tests/test-tag-and-attribute-sanitizer.php @@ -177,19 +177,19 @@ public function get_body_data() { array( 'amp-riddle-quiz' ), ), - 'amp-wistia-player' => array( + 'amp-wistia-player' => array( '', null, // No change. array( 'amp-wistia-player' ), ), - 'amp-byside-content' => array( + 'amp-byside-content' => array( '', null, // No change. array( 'amp-byside-content' ), ), - 'amp-bind-macro' => array( + 'amp-bind-macro' => array( '', null, // No change. array( 'amp-bind' ),