Skip to content

Commit

Permalink
Legend rendering in fieldset is made optional as per HTML5
Browse files Browse the repository at this point in the history
  • Loading branch information
seb3s committed Jan 25, 2017
1 parent 3303302 commit 3d5247a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elements/element_fieldset.erl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ render_element(Record) ->
wf_tags:emit_tag(
<<"fieldset">>,
[
wf_tags:emit_tag(<<"legend">>, nitro:render(case Record#fieldset.legend of undefined -> []; B -> B end), []),
case Record#fieldset.legend of
undefined -> [];
B -> wf_tags:emit_tag(<<"legend">>, nitro:render(B), [])
end,
nitro:render(case Record#fieldset.body of undefined -> []; B -> B end)
],
List).

0 comments on commit 3d5247a

Please sign in to comment.