Skip to content

Commit

Permalink
add muted attribute to html5
Browse files Browse the repository at this point in the history
fixes #122
  • Loading branch information
jaspervdj committed Mar 6, 2024
1 parent f874af6 commit aa43da0
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Text/Blaze/Html5/Attributes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module Text.Blaze.Html5.Attributes
, min
, minlength
, multiple
, muted
, name
, novalidate
, onbeforeonload
Expand Down Expand Up @@ -1341,6 +1342,24 @@ multiple :: AttributeValue -- ^ Attribute value.
multiple = attribute "multiple" " multiple=\""
{-# INLINE multiple #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
-- | Combinator for the @muted@ attribute.
--
-- Example:
--
-- > div ! muted "bar" $ "Hello."
--
-- Result:
--
-- > <div muted="bar">Hello.</div>
--
muted :: AttributeValue -- ^ Attribute value.
-> Attribute -- ^ Resulting attribute.
muted = attribute "muted" " muted=\""
{-# INLINE muted #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
Expand Down
19 changes: 19 additions & 0 deletions src/Text/Blaze/XHtml5/Attributes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module Text.Blaze.XHtml5.Attributes
, min
, minlength
, multiple
, muted
, name
, novalidate
, onbeforeonload
Expand Down Expand Up @@ -1341,6 +1342,24 @@ multiple :: AttributeValue -- ^ Attribute value.
multiple = attribute "multiple" " multiple=\""
{-# INLINE multiple #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
-- | Combinator for the @muted@ attribute.
--
-- Example:
--
-- > div ! muted "bar" $ "Hello."
--
-- Result:
--
-- > <div muted="bar">Hello.</div>
--
muted :: AttributeValue -- ^ Attribute value.
-> Attribute -- ^ Resulting attribute.
muted = attribute "muted" " muted=\""
{-# INLINE muted #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
Expand Down
2 changes: 2 additions & 0 deletions src/Util/GenerateHtmlCombinators/Html5.hs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ attributes =
, "min"
, "minlength"
, "multiple"
, "muted"
, "name"
, "novalidate"
, "onbeforeonload"
Expand Down Expand Up @@ -223,6 +224,7 @@ attributes =
, "oninput"
, "oninvalid"
, "onkeydown"
, "onkeypress"
, "onkeyup"
, "onload"
, "onloadeddata"
Expand Down

0 comments on commit aa43da0

Please sign in to comment.