laravel-livewire-tables
laravel-livewire-tables copied to clipboard
Javascript error thrown when a column value contains the double quote character (")
Whenever a value for a column contains a double quote character the table throws a Javascript error like the following one:
Uncaught (in promise) DOMException: Failed to execute 'setAttribute' on 'Element': 'sed."' is not a valid attribute name.
at Element.setAttribute (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:148122)
at morphAttrs (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:81023)
at morphEl (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:87062)
at http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:88518
at morphEl (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:90339)
at http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:88518
at morphEl (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:90339)
at http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:88518
at morphEl (http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:90339)
at http://localhost/vendor/livewire/livewire.js?id=c69d0f2801c01fcf8166:13:88518
This example error is given for a column containing the following value Mollitia sed" quis et perferendis sed.
By the error description I believe the column value is used as identifier of a DOM element, which is prone to errors. It seems like the error also happens even if the column in question is not in the selected columns definition (to be shown).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I can not replicate this. I tried with a single double quote and a string wrapped in double quotes and I get no javascript errors.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.