Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bryancoxwell
62 days ago
|
parent
|
context
|
favorite
| on:
HTML Attributes vs. DOM Properties
For custom elements you may want to store data or methods that modify the element’s behavior.
berkes
61 days ago
[–]
Methods as in callbacks? So, code? Do you then store a closure or such? Or a pointer to one (i.e. the function/name)? And how or what data would modify behaviour?
As said: I'm unfamiliar with these concepts as I actively try to avoid them :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: