Skip to content

Commit

Permalink
Adds <u> parent tag to HTML5.
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg authored and jaspervdj committed Jun 10, 2018
1 parent 0f72035 commit 08c883d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/GenerateHtmlCombinators.hs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ html5 = HtmlVariant
, "pre", "progress", "q", "rp", "rt", "ruby", "samp", "script"
, "section", "select", "small", "span", "strong", "style", "sub"
, "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th"
, "thead", "time", "title", "tr", "ul", "var", "video"
, "thead", "time", "title", "tr", "u", "ul", "var", "video"
]
, leafs =
-- http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#void-elements
Expand Down
2 changes: 2 additions & 0 deletions tests/Text/Blaze/Html/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ tests = concatMap (uncurry makeTests) $ zip names

, HtmlTest "<img src=\"&amp;\">" $ img ! src "&"

, HtmlTest "<u>hello</u>" $ H.u "hello"

-- Pre-escaping cases
, HtmlTest "<3 Haskell" $ preEscapedToMarkup ("<3 Haskell" :: String)

Expand Down

0 comments on commit 08c883d

Please sign in to comment.