Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Shog9
53 days ago
|
parent
|
context
|
favorite
| on:
Just use a button
FWIW, you can generally figure out what's allowed fairly quickly by checking the content model for a given element[1]. Some browsers might be more or less restrictive, but for normal usage this'll be more than enough to avoid unexpected behavior.
[1]:
https://html.spec.whatwg.org/#the-button-element:concept-ele...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1]: https://html.spec.whatwg.org/#the-button-element:concept-ele...