From f222d392d20c1dbcd0d960da0c79c533ec25a05c Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Wed, 22 Jun 2016 16:29:53 +0530 Subject: [PATCH 1/6] Remove tags that give DISALLOWED_TAG_ANCESTOR validation error --- src/Pass/StandardFixPass.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Pass/StandardFixPass.php b/src/Pass/StandardFixPass.php index 2d04d43a..4139ad99 100644 --- a/src/Pass/StandardFixPass.php +++ b/src/Pass/StandardFixPass.php @@ -48,6 +48,7 @@ class StandardFixPass extends BasePass protected $remove_tags_for_codes = [ ValidationErrorCode::WRONG_PARENT_TAG, ValidationErrorCode::DISALLOWED_TAG, + ValidationErrorCode::DISALLOWED_TAG_ANCESTOR, ValidationErrorCode::DUPLICATE_UNIQUE_TAG, ValidationErrorCode::GENERAL_DISALLOWED_TAG ]; From c9c62bfc485721d4c0e59292894bfc72b2e0a9f0 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Wed, 22 Jun 2016 16:30:44 +0530 Subject: [PATCH 2/6] Regen tests expected output for DISALLOWED_TAG_ANCESTOR --- tests/test-data/full-html/noscript.html.out | 3 ++- tests/test-data/full-html/validator-amp-mustache.html.out | 5 ++--- tests/test-data/full-html/validator-amp-sidebar.html.out | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test-data/full-html/noscript.html.out b/tests/test-data/full-html/noscript.html.out index f38cc9ab..0ab0344b 100644 --- a/tests/test-data/full-html/noscript.html.out +++ b/tests/test-data/full-html/noscript.html.out @@ -55,7 +55,7 @@ - + @@ -158,6 +158,7 @@ FAIL