Table.row String selector bugged

Table.row String selector bugged

tylerdurden83tylerdurden83 Posts: 4Questions: 0Answers: 0

Dear friends, I made this fiddle to demonstrate an issue with the table.row String selector.

https://jsfiddle.net/jr18rpgm/

Basically, when there is no ID that matches the seached String, and the searched String doesn't contain weird characters, it correctly returns undefined.

When there is no ID that matches the seached String, and the searched String contains weird characters, it raises a Uncaught Error: Syntax error, unrecognized expression exception.

When there is no ID that matches the seached String, and the search takes a Jquery object as its input, it correctly returns undefined.

Am I missing something?

Thank you
Have a nice day,
TD

Replies

  • allanallan Posts: 63,772Questions: 1Answers: 10,511 Site admin

    I'm not sure I see the issue I'm afraid. If you are passing in an invalid selector it throws an error. That seems okay to me. That is exactly what jQuery does - and in fact where the error that you are seeing is coming from (DataTables uses jQuery for DOM selection).

    Allan

This discussion has been closed.