Skip to content
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

Runtime issue: TypeError: Cannot read property '0' of undefined #2681

Closed
patrickhulce opened this issue Dec 8, 2020 · 4 comments
Closed
Assignees
Labels
color contrast Color contrast issues fix Bug fixes

Comments

@patrickhulce
Copy link

Originally filed at GoogleChrome/lighthouse#11721 (comment)

Run axe on https://www.rome2rio.com/s/Mumbai/Delhi

Supposedly related an interaction with color-contrast and overflow: scroll? From that original Lighthouse issue...

I notice if I remove a overflow-x: scroll style attribute from two sections (Things to do, Places to stay) then the error goes away

TypeError: Cannot read property '0' of undefined
    at g (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:117582)
    at chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:119639
    at Array.map (<anonymous>)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:119593)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:105942)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:101530)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:103754)
    at t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:102856)
    at Object.t.default (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:15179)
    at c.run (chrome-extension://lhdoppojpmngadmnindnejefpokejbdd/vendor.bundle.js:33:187710)
@straker
Copy link
Contributor

straker commented Dec 9, 2020

Thanks for the issue. It is indeed a separate problem and we'll be sure to get it fixed.

@padmavemulapati
Copy link

@straker , is it similar to "axe-core Error: Cannot read property 'filter' of undefined" #2483 ?

@straker
Copy link
Contributor

straker commented Dec 21, 2020

@padmavemulapati kinda of. They throw an error in the same place / way, but the causes are different.

@padmavemulapati
Copy link

Verified with the latest axe-core-develop codebase -
Working fine with handling of text that overflows outside the parent:
TestScript:
<div id="1" style="width: 250px; overflow: hidden">
<p id="target" style="max-height: 80px; overflow: hidden; line-height: 20px; font-size: 13px;">The Chandni Chowk (Moonlight Square) is one of the oldest and busiest markets in Old Delhi, India. Chandni Chowk is located close to Old Delhi Railway Station. The Red Fort monument is located within the market. It was built in the 17th century by Mughal Emperor of India Shah Jahan and designed by his daughter Jahanara. The market was once divided by canals (now closed) to reflect moonlight and remains one of India\'s largest wholesale markets.</p>
</div>

image

@straker straker closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color contrast Color contrast issues fix Bug fixes
Projects
None yet
Development

No branches or pull requests

3 participants