Allow alt-attribute on <img>-tags

https://www.w3.org/html/wg/wiki/IssueAltAttribute
This commit is contained in:
kr4ssi 2021-01-27 12:25:42 +01:00 committed by Calvin Montgomery
parent a75917d4e4
commit e391a80d65
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const ALLOWED_SCHEMES = [
var ATTRIBUTE_MAP = { var ATTRIBUTE_MAP = {
a: ["href", "name", "target"], a: ["href", "name", "target"],
font: ["size"], font: ["size"],
img: ["src"], img: ["src", "alt"],
marquee: ["behavior", "behaviour", "direction", "scrollamount"], marquee: ["behavior", "behaviour", "direction", "scrollamount"],
table: ["cellpadding", "cellspacing"], table: ["cellpadding", "cellspacing"],
th: ["colspan", "rowspan"], th: ["colspan", "rowspan"],