jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/381895 )

Change subject: Add a list of HTML4 Inline tags
......................................................................


Add a list of HTML4 Inline tags

Change-Id: Ibcb862c5ea7d761cfa8ee39feb2b75f6996e39ee
---
M lib/config/WikitextConstants.js
1 file changed, 24 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Arlolra: Looks good to me, approved



diff --git a/lib/config/WikitextConstants.js b/lib/config/WikitextConstants.js
index a686058..1382b7c 100644
--- a/lib/config/WikitextConstants.js
+++ b/lib/config/WikitextConstants.js
@@ -213,6 +213,30 @@
                        'MAP', 'OBJECT', 'PRE', 'PROGRESS', 'VIDEO',
                ]),
 
+               // From 
https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements
+               // plus some non-strict elements not on that list (FONT, S, 
STRIKE, U) since
+               // these are tags that are actually used on wikipedias
+               //
+               // All HTML5 formatting elements except NOBR is on this list
+               HTML4InlineTags: new Set([
+                       'A', 'ABBR', /* 'ACRONYM', */
+                       'B', 'BIG', 'BDO', 'BR', 'BUTTON',
+                       'CITE', 'CODE',
+                       'DFN',
+                       'EM',
+                       'FONT',
+                       'I', 'IMG', 'INPUT',
+                       'KBD',
+                       'LABEL',
+                       'MAP',
+                       'Q',
+                       'OBJECT',
+                       'S', 'SAMP', 'SCRIPT', 'SELECT', 'SMALL', 'SPAN', 
'STRIKE', 'STRONG', 'SUB', 'SUP',
+                       'TEXTAREA', 'TIME', 'TT',
+                       'U',
+                       'VAR',
+               ]),
+
                // See 
http://www.w3.org/html/wg/drafts/html/master/syntax.html#formatting
                FormattingTags: new Set([
                        'A', 'B', 'BIG', 'CODE', 'EM', 'FONT', 'I', 'NOBR',

-- 
To view, visit https://gerrit.wikimedia.org/r/381895
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibcb862c5ea7d761cfa8ee39feb2b75f6996e39ee
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: Arlolra <[email protected]>
Gerrit-Reviewer: C. Scott Ananian <[email protected]>
Gerrit-Reviewer: Sbailey <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to