From bdad3d9053005a847ea4ebaa1c0cc709ff7cd1f7 Mon Sep 17 00:00:00 2001 From: Val Vankov Date: Thu, 6 Jun 2024 02:47:17 +0300 Subject: [PATCH 1/2] Add S and U phrasing elements --- Readability.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readability.js b/Readability.js index 89fdbd03..16dd4940 100644 --- a/Readability.js +++ b/Readability.js @@ -168,8 +168,8 @@ Readability.prototype = { "ABBR", "AUDIO", "B", "BDO", "BR", "BUTTON", "CITE", "CODE", "DATA", "DATALIST", "DFN", "EM", "EMBED", "I", "IMG", "INPUT", "KBD", "LABEL", "MARK", "MATH", "METER", "NOSCRIPT", "OBJECT", "OUTPUT", "PROGRESS", "Q", - "RUBY", "SAMP", "SCRIPT", "SELECT", "SMALL", "SPAN", "STRONG", "SUB", - "SUP", "TEXTAREA", "TIME", "VAR", "WBR", + "RUBY", "S", "SAMP", "SCRIPT", "SELECT", "SMALL", "SPAN", "STRONG", "SUB", + "SUP", "TEXTAREA", "TIME", "U", "VAR", "WBR", ], // These are the classes that readability sets itself. From 6bead9203608ad05ce524df5460861d2f6fce5ae Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Thu, 17 Oct 2024 17:32:38 +0100 Subject: [PATCH 2/2] Update hukumusume testcase --- test/test-pages/hukumusume/expected.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/test-pages/hukumusume/expected.html b/test/test-pages/hukumusume/expected.html index 8b20dd99..959f01a5 100644 --- a/test/test-pages/hukumusume/expected.html +++ b/test/test-pages/hukumusume/expected.html @@ -152,9 +152,13 @@ -   1月 1日の童話・昔話 -

福娘童話集

-
+   1月 1日の童話・昔話 +

+ +

福娘童話集

+
+

+