I have a dom element that contains a fully qualified name as part of the id attribute;
<div id="domain\element\div">My Div</div>
It seems impossible to get jQuery to select the element by ID. Here's my experiment;
var $e1 = $('#domain\\\element\\\div');
var $e2 = $('#domain\\element\\div');
var $e3 = $(document.getElementById('domain\\\element\\\div'));
console.log($e1);
console.log($e2);
console.log($e3);
The output of the console displays the first two as empty while the third works;
[]
[]
<div id="domain\element\div">TODO write content</div>
I am using jQuery 1.5.2. Is this a bug with jQuery itself or are my selector strings wrong?