Hacker News new | ask | show | jobs
by rounce 83 days ago
Why have `<div data-part="form">` instead of using a `<form>` element?
2 comments

You can have <form data-part="form"> too. The tag doesn't matter. The data-component, data-roles, data-part or data-field attributes is what makes your HTML be a component, a component part or a field in Qite.
this! it is absolutely nuts having everything in div/span elements and then assigning data/class attributes so they could behave like form or any other interactable element..