From 05bc6871115911abf227226ac623fce72e97e6b5 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian"
Date: Thu, 2 Apr 2020 11:17:41 -0400
Subject: Use HTML5 semantics for self-closed HTML tags in wikitext
This behavior has been deprecated and with a tracking category since
1.28. Time to remove the temporary parameter added to
Sanitizer::removeHTMLtags() and (finally) tweak the behavior to match
HTML5.
Bug: T134423
Change-Id: I5c725175d05854139c95a2b3d8d35ff63cb6707b
---
tests/parser/parserTests.txt | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
(limited to 'tests/parser')
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index f8461763492d..10220d3e0bb9 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -9710,8 +9710,8 @@ Failing to transform badly formed HTML into correct XHTML
!!end
-## FIXME: Is Parsoid's acceptance of self-closing html-tags
-## a feature or a bug? See https://phabricator.wikimedia.org/T76962
+## Parsoid's behavior w/ self-closing HTML tags is now a bug;
+## see T134423. Legacy Parser now implements proper HTML5 semantics.
!! test
Handling html with a div self-closing tag
!! wikitext
@@ -9721,20 +9721,13 @@ Handling html with a div self-closing tag
-!! html/php+tidy
-
-
+!! html+tidy
-!! html/parsoid
-
-
-
+
!! end
!! test
@@ -19753,8 +19746,7 @@ Self closed html pairs (T7487)
Centered text
In div text
!! html+tidy
-
Centered text
-
In div text
+
Centered textIn div text
!! end
!! test
@@ -28220,10 +28212,8 @@ Self-closed tag with broken attribute value quoting
parsoid=wt2html,html2html
!! wikitext
Foo
-!! html/parsoid
-
Foo
+!! html+tidy
+
Foo
!! end
!! test
--
cgit v1.2.3