Skip to content

Commit f677105

Browse files
committed
Add picture element
1 parent 94c0790 commit f677105

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Html.elm

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Html exposing
55
, div, p, hr, pre, blockquote
66
, span, a, code, em, strong, i, b, u, sub, sup, br
77
, ol, ul, li, dl, dt, dd
8-
, img, iframe, canvas, math
8+
, img, picture, iframe, canvas, math
99
, form, input, textarea, button, select, option
1010
, section, nav, article, aside, header, footer, address, main_
1111
, figure, figcaption
@@ -40,7 +40,7 @@ expect to use frequently will be closer to the top.
4040
@docs ol, ul, li, dl, dt, dd
4141
4242
## Embedded Content
43-
@docs img, iframe, canvas, math
43+
@docs img, picture, iframe, canvas, math
4444
4545
## Inputs
4646
@docs form, input, textarea, button, select, option
@@ -590,6 +590,10 @@ img : List (Attribute msg) -> List (Html msg) -> Html msg
590590
img =
591591
Elm.Kernel.VirtualDom.node "img"
592592

593+
{-| Represents an image using one of many possible sources -}
594+
picture : List (Attribute msg) -> List (Html msg) -> Html msg
595+
picture =
596+
Elm.Kernel.VirtualDom.node "picture"
593597

594598
{-| Embedded an HTML document. -}
595599
iframe : List (Attribute msg) -> List (Html msg) -> Html msg

0 commit comments

Comments
 (0)