Uncaught DOMException – querySelectorAll, ‘.’ is not a valid selector
-
Hi,
When I enable the Show/Hide Author plugin on wordpress 4.7.3, I have an Uncaught DOMException.
Uncaught DOMException: Failed to execute ‘querySelectorAll’ on ‘Document’: ‘.’ is not a valid selector.
Here is the line of code that causes the DOMException:
var elements = document.querySelectorAll(‘.’+classes[i]);
Here is a thread on Stackoverflow that talks about querySelector constraints:
Can this be resolved? Thank you.
- The topic ‘Uncaught DOMException – querySelectorAll, ‘.’ is not a valid selector’ is closed to new replies.