Thanks T.J.
Now everything became clear.
On 20 окт, 16:15, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
But, as I understud, expando properties == custom attributes
No, properties and attributes are very different things, as I said.
You have to be cautious when using expandos, and if
Hi,
maybe I'm confusing javascript properties to the attributes?
Yes, I think you are. Easy enough to do, but they're really quite
distinct things.
HTML elements have attributes, which (initially) come from the markup
and are accessible via the DOM methods `getAttribute` and
`setAttribute`
T.J., thanks for an exhaustive explanation!
But, as I understud, expando properties == custom attributes and its
not good, but I see expando on extended elements in prototype!
Will this to migrate to storage functionality or its not so bad
practice?
On 20 окт, 12:51, T.J. Crowder
Hi,
But, as I understud, expando properties == custom attributes
No, properties and attributes are very different things, as I said.
You have to be cautious when using expandos, and if you're using
Prototype there's not much reason to (use the storage stuff instead),
but they're not bad per se.
Or should I use .storage object?
But in this case I couldnt do search like $$('p[myAttr=foo]')
On 20 окт, 01:59, buda www...@pochta.ru wrote:
I'm confused at all.
On the one hand HTML declares the existence of the elements expando-
attributes.
On the other hand HTML5 says that all illegal
maybe I'm confusing javascript properties to the attributes? how do
they compare?
On 20 окт, 02:03, buda www...@pochta.ru wrote:
Or should I use .storage object?
But in this case I couldnt do search like $$('p[myAttr=foo]')
On 20 окт, 01:59, buda www...@pochta.ru wrote:
I'm confused