Reputation: 8585
I'm trying to use document.querySelectorAll('a')
in this mobile site: https://pwa.www.1800flowers.com, but its only grabbing 3 anchor elements. Its weird because by looking at the console, there's many anchor elements. I wanted to grab a specific one, but just doing this simple query selector, its only grabbing 3.
Any ideas on why this is happening? Or if I wanted to go about grabbing a specific anchor element, how would I go about doing so?
Upvotes: 0
Views: 107
Reputation: 463
They are using iron pages https://github.com/PolymerElements/iron-pages
In my searches, I found something like:
this.$$('a');
returns:
(435) [a, a, a, a, a, a, a, a, a, a, a, a, a, a#radio-icon, a#cart-icon, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, …]
Upvotes: 3