-
-
Couldn't load subscription status.
- Fork 8.6k
[atoms] fix text node children are always considered as displayed #16284 #16329
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
db9982e to
ddf05bc
Compare
bd44124 to
81f9223
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
81f9223 to
ee4ef96
Compare
ee4ef96 to
e5afc5f
Compare
User description
🔗 Related Issues
Should fix #16284
💥 What does this PR do?
Call the displayed check for children before considering them displayed.
🔧 Implementation Notes
I am not to deep into JS, so someone should double check this.
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Fix text node children visibility check in DOM atoms
Add proper displayed check for nested elements
Rename parameter for clarity in
isShown_functionAdd test case for nested text node visibility
Diagram Walkthrough
File Walkthrough
dom.js
Fix nested element visibility checksjavascript/atoms/dom.js
parentsDisplayedFnparameter todisplayedFnfor clarityshown_test.html
Add test for nested text nodejavascript/atoms/test/shown_test.html
testNestedTextNode