-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Node.toggleView
did not show Node when style="display: none"
#895
Conversation
`node-view`'s `_isHidden()` relied on `hidden` attribute, now also checks and `display` style (in line with `_hide` and `_show`)
node-view was changed to use the The html5 spec says:
There are many discussions and blog posts about this topic. I don't know what the rationale for using the |
A couple of questions:
|
What about my point about the hidden attribute being not quite kosher to use for hiding nodes? It's certainly an API change, because Maybe @gerardkcohen could weigh in here! |
@juandopazo there is no |
You can use My point is that according to the spec:
Which would mean |
However the DOM spec says:
I played around in Firebug, and the following all work to disable an input: el.setAttribute('disabled', 'disabled');
el.setAttribute('disabled', '');
// and to remove
el.removeAttribute('disabled'); Let's go with the spec! I'm still uncomfortable with using the |
See PR 895
I fixed the tests |
Hey guys, just got back from vacation. Give me some time to get settled and go through this. |
Hey @gerardkcohen, have you had a chance to take a look yet? I'd like to close this before it's my time for vacation! :) |
The move to use the |
All right, then I guess this PR can be merged! @juandopazo I can haz merge? |
Sadly, we're now deep in the dark and dreary winter of code freeze, so non-critical non-documentation changes have to wait until the thaw. I'll merge this as soon as that happens (July 16th, if the calendar is right: https://github.com/yui/yui3/wiki/Development-Schedule ) |
Merged into dev-master. |
node-view
's_isHidden()
relied onhidden
attribute,now also checks and
display
style (in line with_hide
and_show
)