Title: 'Uncaught Syntax error, unrecognized expression:' with jQueryMustache.js when template output is empty · Issue #1 · thinkdevcode/jQuery-Mustache · GitHub
Open Graph Title: 'Uncaught Syntax error, unrecognized expression:' with jQueryMustache.js when template output is empty · Issue #1 · thinkdevcode/jQuery-Mustache
X Title: 'Uncaught Syntax error, unrecognized expression:' with jQueryMustache.js when template output is empty · Issue #1 · thinkdevcode/jQuery-Mustache
Description: When the output of a jQuery template is empty, executing 'mustache' function raises Uncaught Syntax error, unrecognized expression. Here's a test script to reproduce the error : Open Graph Description: When the output of a jQuery template is empty, executing 'mustache' function raises Uncaught Syntax error, unrecognized expression. Here's a test script to reproduce the error : X Description: When the output of a jQuery template is empty, executing 'mustache' function raises Uncaught Syntax error, unrecognized expression. Here's a test script to reproduce the error : <!DO...
Opengraph URL: https://github.com/thinkdevcode/jQuery-Mustache/issues/1
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'Uncaught Syntax error, unrecognized expression:' with jQueryMustache.js when template output is empty","articleBody":"When the output of a jQuery template is empty, executing 'mustache' function raises Uncaught Syntax error, unrecognized expression.\n\nHere's a test script to reproduce the error :\n\n```\n\u003c!DOCTYPE html>\n\u003chtml>\n\u003chead>\n \u003cmeta charset=\"utf-8\" />\n \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />\n \u003ctitle>\u003c/title>\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> \n \u003cscript type=\"text/javascript\" src=\"jquery-1.6.2.min.js\">\u003c/script>\n \u003cscript type=\"text/javascript\" src=\"mustache.js\">\u003c/script>\n \u003cscript type=\"text/javascript\" src=\"jQueryMustache.js\">\u003c/script>\n \u003cscript type=\"text/javascript\">\n $(function() {\n var emptyData = {\"clients\": []}; //-> KO\n var testData = {\"clients\": [\n {\n \"personne\": {\n \"nom\": \"THOMAS\",\n \"adresseResidence\": {\n \"codePostaln\": \"12000\",\n \"rue\": \"7, Avenue du Maréchal Foch\",\n \"villen\": \"Arpajon-sur-Cère\",\n \"codePostal\": \"12000\",\n \"ville\": \"Arpajon-sur-Cère\",\n \"id\": 1,\n \"version\": null\n },\n \"dateNaissance\": \"1975-05-16\",\n \"matricule\": \"00000000\",\n \"prenom\": \"Olivier\",\n \"deuxiemePrenom\": \"Pierre\",\n \"nomMarital\": null,\n \"numeroSecuriteSociale\": \"176081501409491\",\n \"id\": 1,\n \"version\": null\n },\n \"dateContact\": 1314605754000,\n \"rib\": \"000\",\n \"id\": 1\n } ]\n };\n $('#clientsList').html($('#templateClients').mustache(emptyData));\n });\n \u003c/script>\n\u003c/head>\n\u003cbody>\n \u003cscript id=\"templateClients\" type=\"x-tmpl-mustache\">\n {{#clients}}\n \u003cli>\n \u003ca href=\"${ctx}/clients/{{id}}\" class=\"ui-commandlink\">{{#personne}}{{nom}}{{/personne}} {{#personne}}{{prenom}}{{/personne}}\u003c/a>\n \u003c/li>\n {{/clients}}\n\u003c/script>\n \u003cul id=\"clientsList\">\n \u003cli>\n \u003c/li>\n \u003c/ul>\n\u003c/body>\n\u003c/html>\n```\n\nTo resolve this issue, change follogin line in jQueryMustache.js :\n\n```\nreturn $(Mustache.to_html(this.text(), data, partial, stream));\n```\n\nwith :\n\n```\nreturn Mustache.to_html(this.text(), data, partial, stream);\n```\n","author":{"url":"https://github.com/gonzalad","@type":"Person","name":"gonzalad"},"datePublished":"2011-08-31T14:20:02Z","url":"https://github.com/thinkdevcode/jQuery-Mustache/issues/1"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:0739b8e4-3883-0a81-2455-9be584ffa31e current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id D6C6:A71F9:3312A47:40A6E52:6B020BF0 html-safe-nonce f43c8204573cc91ae12c19f31b3fb30bb713f90f4335c6700b78920d37f1ba19 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkM2OkE3MUY5OjMzMTJBNDc6NDBBNkU1Mjo2QjAyMEJGMCIsInZpc2l0b3JfaWQiOiI0NTE0NjczOTUzMjMwNDI1MDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 44e9ec942089c07a25ec5f6f1dc6a28795e21fb27f4e92116ae02b79dfb2b828 hovercard-subject-tag issue:1532439 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/thinkdevcode/jQuery-Mustache/1/issue_layout twitter:image https://opengraph.githubassets.com/f6ce74ef62584f4ebfeba1636209cdc4f5248ac870f6437559e4f12284af999f/thinkdevcode/jQuery-Mustache/issues/1 twitter:card summary_large_image og:image https://opengraph.githubassets.com/f6ce74ef62584f4ebfeba1636209cdc4f5248ac870f6437559e4f12284af999f/thinkdevcode/jQuery-Mustache/issues/1 og:image:alt When the output of a jQuery template is empty, executing 'mustache' function raises Uncaught Syntax error, unrecognized expression. Here's a test script to reproduce the error : og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username gonzalad hostname github.com expected-hostname github.com None 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 turbo-cache-control no-preview go-import github.com/thinkdevcode/jQuery-Mustache git https://github.com/thinkdevcode/jQuery-Mustache.git octolytics-dimension-user_id 562854 octolytics-dimension-user_login thinkdevcode octolytics-dimension-repository_id 1380187 octolytics-dimension-repository_nwo thinkdevcode/jQuery-Mustache octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 1380187 octolytics-dimension-repository_network_root_nwo thinkdevcode/jQuery-Mustache turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 423dbb54c5e7bfecc838eb387c1435eb3d0e760d ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.