Live data from Hacker News

DOM: attributes sadness

annevankesteren.nl

1–10 of 14 posts

Re: DOM: attributes sadness

#6
post #5

From the Javascript point of view, isnt it usually better to manipulate dom object properties instead of DOM attributes?

Usually yes. The jQuery docs[0] go into why they refactored their .attr into separate .prop and .attr methods way back when in v1.6.

There are also cases, such as the value property, that will also update the value attribute.

[0] http://api.jquery.com/prop/

Re: DOM: attributes sadness

#8
post #7
post #3

Earlier quoted context omitted.

Excuse me sir, have you accepted our lord and savior React.js into your life?

No sir, there are many alternatives. I wrote my own.

Is your library public? I'm also implementing my own right now so I am very curious about the different ways people solve this problem.

Re: DOM: attributes sadness

#10
post #8
post #7

Earlier quoted context omitted.

No sir, there are many alternatives. I wrote my own.

Is your library public? I'm also implementing my own right now so I am very curious about the different ways people solve this problem.

Yes but it's very experimental: https://github.com/google/dart-tagtree/
Post reply on HN