weightless icon indicating copy to clipboard operation
weightless copied to clipboard

wl-radio throws error when name has "."

Open brettwillis opened this issue 4 years ago • 0 comments

If the name attribute of the wl-radio has a . character, such as name="my.name" (or and character that breaks CSS query) then the radio throws an error:

DOMException: Failed to execute 'querySelectorAll' on 'DocumentFragment': 'wl-radio[name=my.name]:not([disabled])' is not a valid selector.

Perhaps the radio should perform some escaping on the name.

brettwillis avatar Oct 23 '19 07:10 brettwillis