I have encountered the following javascript error in webhelp: Uncaught Error: Syntax error, unrecognized expression: [name=section4.id]
This only happens when I have a section which is four levels deep or more and I have given the section a manually generated id (i.e. it is a section to which I want to refer via an xref) which contains a dot(.) character. The error occurs when I click on the section in question in the navigation sidebar. My browser reports that the problem is in: jquery-1.7.2.min.js:3 This is a docbook sample which demonstrates the problem: <?xml version="1.0"?> <book id="DocId" xmlns="http://docbook.org/ns/docbook"> <title>Document Title</title> <chapter><title>Chapter</title> <section><title>Section Level 1</title> <section><title>Section Level 2</title> <section><title>Section Level 3</title> <section><title>Section Level 4</title> </section> </section> </section> <section id="section2.id"><title>Section Level 2 with ID</title> <section id="section3.id"><title>Section Level 3 with ID</title> <section id="section4.id"><title>Section Level 4 with ID</title> <para>And finally some text.</para> </section> </section> </section> <section id="section2id"><title>Section Level 2 with ID (no dot)</title> <section id="section3id"><title>Section Level 3 with ID (no dot)</title> <section id="section4id"><title>Section Level 4 with ID (no dot)</title> <para>And some more text.</para> </section> </section> </section> </section> </chapter> </book> It doesn't seem to like manually generated 'id's with the dot character in them. Has anyone else found this? Is this a limitation of this format? Are there any other characters which are not permitted? Is it confusing the string literal for a regexp? Nat
