There's an issue with one of our content type when clicking the "Remove" button on added taxonomy terms - we get the following error:
"Syntax error, unrecognized expression: #"
Tracing through the javascript execution, the error fires during the re-binding of Drupal behaviors, after the ajax request returns with the new HTML.
We thought it was related to http://drupal.org/node/1315192, but after wrapping all our attribute value selectors with double quotes, this didn't fix the issue.
In the end, we threw a try/catch blog over the "Drupal.attachBehaviors(Drupal.HierarchicalSelect.context);" line in hierarchical_select.js to catch and dismiss this particular error, while throwing any other sort of error that comes through.
Patch(es) to follow, once I have an issue number after posting this...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uncaught-syntax-error-1363030-2.patch | 967 bytes | meyian |
| #1 | uncaught-syntax-error-1363030-1.patch | 961 bytes | meyian |
Comments
Comment #1
meyian commentedThis is the D6 patch
Comment #2
meyian commentedThis is the D7 patch
Comment #3
meyian commentedComment #4
meyian commentedComment #5
meyian commentedComment #5.0
meyian commentedomitted error text
Comment #6
goldThis is a 7 year old issue that I've not been able to replicate. Also, the patch no longer applies.
If this is still an extant issue could the description be updated with detailed steps to replicate and the patch be rerolled.