Browse Source

Add <wbr> to definitions.py

Added to MediaWiki in ff74113bea (T54468).
tags/v0.5.2
Kunal Mehta 6 years ago
parent
commit
e506380318
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      mwparserfromhell/definitions.py
  2. +3
    -2
      mwparserfromhell/parser/ctokenizer/definitions.c

+ 2
- 2
mwparserfromhell/definitions.py View File

@@ -56,8 +56,8 @@ INVISIBLE_TAGS = [
"section", "templatedata", "timeline" "section", "templatedata", "timeline"
] ]


# [mediawiki/core.git]/includes/Sanitizer.php @ 87a0aef762
SINGLE_ONLY = ["br", "hr", "meta", "link", "img"]
# [mediawiki/core.git]/includes/Sanitizer.php @ 065bec63ea
SINGLE_ONLY = ["br", "hr", "meta", "link", "img", "wbr"]
SINGLE = SINGLE_ONLY + ["li", "dt", "dd", "th", "td", "tr"] SINGLE = SINGLE_ONLY + ["li", "dt", "dd", "th", "td", "tr"]


MARKUP_TO_HTML = { MARKUP_TO_HTML = {


+ 3
- 2
mwparserfromhell/parser/ctokenizer/definitions.c View File

@@ -45,11 +45,12 @@ static const char* PARSER_BLACKLIST[] = {
}; };


static const char* SINGLE[] = { static const char* SINGLE[] = {
"br", "hr", "meta", "link", "img", "li", "dt", "dd", "th", "td", "tr", NULL
"br", "hr", "meta", "link", "img", "li", "dt", "dd", "th", "td", "tr",
"wbr", NULL
}; };


static const char* SINGLE_ONLY[] = { static const char* SINGLE_ONLY[] = {
"br", "hr", "meta", "link", "img", NULL
"br", "hr", "meta", "link", "img", "wbr", NULL
}; };


/* /*


Loading…
Cancel
Save