Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilde in id attribute (HTML 5 draft) causes exception to be thrown in childrenOf() #7

Closed
Chealer opened this issue Feb 11, 2011 · 1 comment
Assignees
Milestone

Comments

@Chealer
Copy link

Chealer commented Feb 11, 2011

Hi,
the current draft of HTML 5 is more permissive than HTML 4 for the values of id attributes, which can now contain about any character, such as the tilde (~). But a tilde in the id attribute of a table row causes an exception in childrenOf() when calling the treeTable constructor on the table.

For example, id "treetable_2_~" causes the problem. childrenOf() is called from initialize() and
uses a selector with the id unescaped:

function childrenOf(node) {
return $("table.treeTable tbody tr." + options.childPrefix + node[0].id);
};

I get a JavaScript error in Firefox: "uncaught exception: Syntax error, unrecognized expression: ~".

@ghost ghost assigned ludo Feb 3, 2013
@ludo
Copy link
Owner

ludo commented Feb 3, 2013

(sorry, late response, cleaning up issues) Thanks for reporting this issue. Version 3 of the plugin does not use node-ids in selectors so this is no longer an issue.

@ludo ludo closed this as completed Feb 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants