Hi! I’m really loving MaryUI, it’s awesome to have an open-source alternative to FluxUI.
I noticed that the input fields are wrapped in <fieldset> elements. According to the W3C spec, “The <fieldset> element represents a set of form controls optionally grouped under a common name.” (W3C Spec).
I was wondering: why use a <fieldset> instead of a <div> or <label>? Also, <legend> elements don’t have the built-in functionality to focus the input when clicked, unlike <label> elements.
Furthermore, when using <x-input>, I noticed that there are two <label> elements surrounding the input.
Thanks again for your amazing work on MaryUI!
Hi! I’m really loving MaryUI, it’s awesome to have an open-source alternative to FluxUI.
I noticed that the input fields are wrapped in
<fieldset>elements. According to the W3C spec, “The<fieldset>element represents a set of form controls optionally grouped under a common name.” (W3C Spec).I was wondering: why use a
<fieldset>instead of a<div>or<label>? Also,<legend>elements don’t have the built-in functionality to focus the input when clicked, unlike<label>elements.Furthermore, when using
<x-input>, I noticed that there are two<label>elements surrounding the input.Thanks again for your amazing work on MaryUI!