Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional examples around element overloading #533

Open
LeaVerou opened this issue Dec 4, 2024 · 0 comments
Open

Additional examples around element overloading #533

LeaVerou opened this issue Dec 4, 2024 · 0 comments

Comments

@LeaVerou
Copy link
Member

LeaVerou commented Dec 4, 2024

This is a followup to #502.

  • It might make sense to mention distinct elements sharing the same interface as a halfway solution, with the positive example of <video> and <audio> as instances of HTMLMediaElement.
  • <h1> to <h6> are examples of insufficient overloading.
  • @hober also mentioned that <legend>, <caption> and <figcaption> should have been the same element.
  • <input type=checkbox switch> is a positive example of overloading (see New principle: Avoid introducing mode errors #532)
@LeaVerou LeaVerou changed the title More examples around element overloading Additional examples around element overloading Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant