BUG: page errors on load due to id="" in title
Closed this issue · 2 comments
skamansam commented
I am using widdershins to generate the markdown for use in shins. When opening the resultant docs in my web browser, I do not see the language tabs, and get an error. Widdershins is generating the following element at the top:
<h1 id="">My API Test</h1>
The lack of a non-empty id attribute is throwing the error, in _lang.js:40
Uncaught Error: Syntax error, unrecognized expression: #
at Function.Sizzle.error (_jquery.js:1580)
at Sizzle.tokenize (_jquery.js:2232)
at Sizzle.select (_jquery.js:2659)
at Function.Sizzle [as find] (_jquery.js:884)
at jQuery.fn.init.find (_jquery.js:2922)
at new jQuery.fn.init (_jquery.js:3032)
at jQuery (_jquery.js:98)
at HTMLAnchorElement.<anonymous> (_toc.js:41)
at Function.each (_jquery.js:362)
at jQuery.fn.init.each (_jquery.js:157)
Sizzle.error @ _jquery.js:1580
Sizzle.tokenize @ _jquery.js:2232
Sizzle.select @ _jquery.js:2659
Sizzle @ _jquery.js:884
find @ _jquery.js:2922
jQuery.fn.init @ _jquery.js:3032
jQuery @ _jquery.js:98
(anonymous) @ _toc.js:41
each @ _jquery.js:362
each @ _jquery.js:157
recacheHeights @ _toc.js:38
makeToc @ _toc.js:93
loadToc @ _toc.js:115
(anonymous) @ index.html?perl:24
mightThrow @ _jquery.js:3583
process @ _jquery.js:3651
setTimeout (async)
jQuery.readyException @ _jquery.js:3868
(anonymous) @ _jquery.js:3888
mightThrow @ _jquery.js:3583
process @ _jquery.js:3651
setTimeout (async)
(anonymous) @ _jquery.js:3689
fire @ _jquery.js:3317
fireWith @ _jquery.js:3447
fire @ _jquery.js:3455
fire @ _jquery.js:3317
fireWith @ _jquery.js:3447
process @ _jquery.js:3671
setTimeout (async)
(anonymous) @ _jquery.js:3689
fire @ _jquery.js:3317
fireWith @ _jquery.js:3447
fire @ _jquery.js:3455
fire @ _jquery.js:3317
fireWith @ _jquery.js:3447
ready @ _jquery.js:3920
completed @ _jquery.js:3930
It appears _toc.js is trying to parse an invalid ID. When I add an identifer there, all works as expected.
MikeRalphson commented
Thanks for the detailed issue description. Will take a look. Have you got an empty info.version
property?
MikeRalphson commented
Closing due to inactivity - but please feel free to reopen the issue if necessary.