Im not sure where to open this issue with the Client Side Validation module or here.
Console error.
$.each(Drupal.settings.clientsideValidation.forms, function (f) {
if ($(context).find('#' + f).length || $(context).is('#' + f)) {
update = true;
}
});
When authcache runs authcacheP13nReplaceWith the above Client Side Validation JS throws the following error.
TypeError: t.getAttribute is not a function. (In 't.getAttribute("id")', 't.getAttribute' is undefined)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screen Shot 2016-09-29 at 2.13.30 PM.png | 451.5 KB | roam2345 |
| #5 | Screen Shot 2016-09-29 at 2.13.07 PM.png | 148.6 KB | roam2345 |
| #3 | 2807483-attach-elements-only.diff | 904 bytes | znerol |
| Screen Shot 2016-09-27 at 5.40.29 PM.png | 105.14 KB | roam2345 |
Comments
Comment #2
roam2345 commentedMaybe just note this some where... I made a choice between the two and was thankfully easy enough to remove clientside validation from my stack.
Comment #3
znerol commentedNice catch. I think that might be a combination of bugs in Authcache and Client Side Validation.
Drupal.attachBehaviorsfor HTML elements. It looks like it also tries to attach text nodes.$(context).find(selector)but rather$(selector, context).Patch attached for the first problem. Do you mind applying the patch and then report back whether it resolves the incompatibility?
Comment #4
roam2345 commented@znerol I owe you a beer, I will get back to you at the soonest.
Comment #5
roam2345 commented@znerol Still falling over for me.
Comment #6
znerol commentedInteresting. Do you mind checking which data is causing that trouble?
Maybe add a
console.logstatement in authcache_p13n.js:Comment #7
znerol commentedI tried to reproduce this problem with Chrome and Firefox to no avail. Which browser/OS do you use? Is there any standard Drupal form where the problem occurs (e.g., the contact form or the comment form)?
Comment #8
roam2345 commented@znerol sorry crazy week have not had a gap to look into this, hope to over next day or two.
Comment #9
znerol commentedAny updates on this?