From 3aae455ed167149e4a86877887053681d62f97d2 2013-10-17 21:09:13 From: MinRK Date: 2013-10-17 21:09:13 Subject: [PATCH] quote data attributes prevents errors when these are empty strings --- diff --git a/IPython/html/templates/notebook.html b/IPython/html/templates/notebook.html index 9a3adce..ddf0dfe 100644 --- a/IPython/html/templates/notebook.html +++ b/IPython/html/templates/notebook.html @@ -21,11 +21,11 @@ window.mathjax_url = "{{mathjax_url}}"; {% block params %} -data-project={{project}} -data-base-project-url={{base_project_url}} -data-base-kernel-url={{base_kernel_url}} -data-notebook-name={{notebook_name}} -data-notebook-path={{notebook_path}} +data-project="{{project}}" +data-base-project-url="{{base_project_url}}" +data-base-kernel-url="{{base_kernel_url}}" +data-notebook-name="{{notebook_name}}" +data-notebook-path="{{notebook_path}}" class="notebook_app" {% endblock %} diff --git a/IPython/html/templates/tree.html b/IPython/html/templates/tree.html index a870436..0a3eca1 100644 --- a/IPython/html/templates/tree.html +++ b/IPython/html/templates/tree.html @@ -10,10 +10,10 @@ {% block params %} -data-project={{project}} -data-base-project-url={{base_project_url}} -data-notebook-path={{notebook_path}} -data-base-kernel-url={{base_kernel_url}} +data-project="{{project}}" +data-base-project-url="{{base_project_url}}" +data-notebook-path="{{notebook_path}}" +data-base-kernel-url="{{base_kernel_url}}" {% endblock %}