Declined
Last Updated: 09 Oct 2024 11:05 by ADMIN
Larry
Created on: 08 Feb 2023 15:48
Category: Tooltip
Type: Feature Request
1
Use document.getElementsByClassName() instead of document.querySelectorAll()
I would like to use a target selector that has some special symbols such as ! and @. Currently, the querySelectorAll() does not accept the !sample-class as a valid selector, but the getElementsByClassName accepts it. 
1 comment
ADMIN
Dimo
Posted on: 09 Oct 2024 11:05

Hello Larry and anyone else who is interested,

Currently we use querySelector() and querySelectorAll() for tooltips and all popups in general, because this is the more universal approach that supports all CSS selectors and combinators. The TargetSelector of a Tooltip component may not be a single CSS class, but a more complex combinator like "#some_id > .some_class some_element".

To support the current proposal, we need to parse the TargetSelector value and analyze which scenario it fits. This sounds like an unnecessary overhead, given the low customer interest in this feature request. If the tooltip targets must use CSS classes with special characters, please use an additional class with no special characters. Or, use a combinator that doesn't include CSS classes with special characters.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.