amercier/webshim — comment on commit 5c6e40599ad589975434c023418216e76d038a07
File: src/extras/custom-validity.js line 231
By aFarkas:

This line could be improved by writing the following line:

$(data.masterElement.form[data.masterElement.name]).filter('[type="radio"]')

But this isn't fully accurate (masterElement don't need to have an associated form element or doesn't need to have a name value, both are edge cases, but...). I just realized that my own radio group collecting isn't good enough and came up with [this function](https://github.com/aFarkas/webshim/blob/master/src/shims/form-core.js#L155-175), which is exposed as $.webshims.modules["form-core"].getGroupElements.

Could you try to test for existence of this method and if it is there use it, if not use your code.