documentation on querySelector?

39 views
Skip to first unread message

Phu Hiep DUONG

unread,
Sep 13, 2015, 1:47:54 PM9/13/15
to polym...@googlegroups.com
What kind of selector string can we give to

Polymer.dom(parent).querySelector(selector)
Polymer.dom(parent).querySelectorAll(selector)

For example
How to access to all the <a> elements whose the "href" attribute starts with "https"?

'a[href=^https]' is not a valid selector.


Thanks

--
/=================================================/
        DUONG Phu Hiep
        Tel: +33 6 68 19 61 34
/=================================================/

Eric Bidelman

unread,
Sep 14, 2015, 3:17:23 AM9/14/15
to Phu Hiep DUONG, polym...@googlegroups.com

It should support all valid selectors to the native qsA. Can you please file a bug?


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CABO6%3DyvMDoxWAVFq3qmtRELuASTX8HBuMMbRM8CZmJitYkNZkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Phu Hiep DUONG

unread,
Sep 14, 2015, 9:34:06 AM9/14/15
to Polymer, duongp...@gmail.com
sorry my bad, 

a[href=^https] is not working because the good syntax is  
a[href^=https] 

Thanks
Reply all
Reply to author
Forward
0 new messages