Commit 574db1a7 authored by Julien Muchembled's avatar Julien Muchembled

onChange/onClick are not valid XHTML attribute

And Chameleon does not workaround by lowercasing them automatically.
parent ffdd3d93
......@@ -94,7 +94,7 @@
<tr>\n
<td valign="top">\n
<select name="domain_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......
285
\ No newline at end of file
286
\ No newline at end of file
......@@ -61,7 +61,7 @@
}.get(dialog_category, \'Select\')"\n
i18n:translate="" i18n:domain="ui"></label>\n
<select name="select_dialog" id="dialog_selector"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doDialog\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doDialog\')">\n
\n
<tal:block tal:repeat="action dialog_actions">\n
<option tal:attributes="value action/url;\n
......
549
\ No newline at end of file
550
\ No newline at end of file
......@@ -85,7 +85,7 @@
<button tal:condition="isUserAllowedToPost"\n
type="submit" title="Reply"\n
name="DiscussionThread_redirectCreateNewDiscussionPost:method"\n
tal:attributes="onClick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"\n
tal:attributes="onclick python: \'redirectCreateCitedNewDiscussionPost(\\\'%s\\\')\' %discussion_post_id"\n
class="discussion-post-action-button">Reply</button>\n
</div>\n
\n
......
133
\ No newline at end of file
134
\ No newline at end of file
......@@ -42,7 +42,7 @@
<tal:block metal:define-macro="master">\n
<span id="jump" metal:define-macro="jump">\n
<select name="select_jump"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doJump\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doJump\')">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Jump...</option>\n
<tal:block tal:repeat="jump actions/object_jump | nothing">\n
......@@ -62,7 +62,7 @@
\n
<span id="action" metal:define-macro="action">\n
<select name="select_action"\n
onChange="submitAction(this.form,\'Base_doAction\')">\n
onchange="submitAction(this.form,\'Base_doAction\')">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Action...</option>\n
<tal:block tal:define="allowed_content_type_list here/getVisibleAllowedContentTypeList | python:[]">\n
......
218
\ No newline at end of file
219
\ No newline at end of file
......@@ -94,7 +94,7 @@
<tr>\n
<td valign="top">\n
<select name="domain_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -196,7 +196,7 @@
tal:define="lines here/getMaxLineNumber"\n
tal:attributes="id string:${field_id}_page_selection;\n
name string:${field_id}_list_start;\n
onChange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
onchange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
i18n:domain="ui" i18n:attributes="title">\n
<option value="0"\n
tal:repeat="p python: range(0, here.total_pages)"\n
......@@ -224,7 +224,7 @@
<td tal:condition="is_report_tree_mode"\n
class="Data" style="width: 50px; text-align: left; vertical-align: middle">\n
<select name="report_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
<tal:block tal:repeat="c here/getReportRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......
......@@ -90,7 +90,7 @@
<tr>\n
<td valign="top">\n
<select name="domain_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -217,7 +217,7 @@
tal:define="lines here/getMaxLineNumber"\n
tal:attributes="id string:${field_id}_page_selection;\n
name string:${field_id}_list_start;\n
onChange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
onchange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
i18n:domain="ui" i18n:attributes="title">\n
<option value="0"\n
tal:repeat="p python: range(0, here.total_pages)"\n
......@@ -256,7 +256,7 @@
tal:define="params python: {field_id+\'_setPage:method\':\'\',\'list_start\':\'this.value\'};\n
lines here/getMaxLineNumber" \n
tal:attributes=\'id string:${field_id}_page_selection;\n
onChange python: real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box_relative_url,box_id,params).replace("\\"this.value\\"","this.value")\'\n
onchange python: real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box_relative_url,box_id,params).replace("\\"this.value\\"","this.value")\'\n
i18n:domain="ui" i18n:attributes="title">\n
<option value="0"\n
tal:repeat="p python: range(0, here.total_pages)"\n
......@@ -288,7 +288,7 @@
<td tal:condition="is_report_tree_mode"\n
class="Data" style="width: 50px; text-align: left; vertical-align: middle">\n
<select name="report_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
<tal:block tal:repeat="c here/getReportRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......
......@@ -69,7 +69,7 @@
<button tal:condition="python: not is_web_mode and form_action"\n
type="submit" class="save" title="Save"\n
tal:attributes="name string:${form_action}:method;\n
onClick string:javascript:clickSaveButton(\'${form_action}\');"\n
onclick string:javascript:clickSaveButton(\'${form_action}\');"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Save</span>\n
......
......@@ -57,7 +57,7 @@
<div class="onright">\n
<span id="language">\n
<select name="select_language"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doLanguage\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doLanguage\')">\n
<option value=""\n
i18n:translate="" i18n:domain="ui">My language</option>\n
<option tal:repeat="language python: here.Localizer.get_languages_map()"\n
......
......@@ -43,7 +43,7 @@
<span class="select_favorite"\n
tal:define="ordered_global_actions python:here.getOrderedGlobalActionList(actions[\'global\']);\n
user_actions actions/user;"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doFavorite\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doFavorite\')">\n
<tal:block tal:repeat="action ordered_global_actions">\n
<span tal:condition="action/disabled"\n
disabled="disabled">-- <tal:block tal:content="action/title" i18n:translate="" i18n:domain="ui" /> --</span>\n
......
761
\ No newline at end of file
762
\ No newline at end of file
......@@ -88,16 +88,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tr><td>\n
<table style="width: 80px;" cellspacing="0" cellpadding="0">\n
<tr>\n
<td id="item2" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onClick="viewDiff(1,document.getElementById(\'main_form\'))">Diff</td>\n
<td id="item2" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onclick="viewDiff(1,document.getElementById(\'main_form\'))">Diff</td>\n
</tr>\n
<tr>\n
<td id="item3" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onClick="log()"> History</td>\n
<td id="item3" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onclick="log()"> History</td>\n
</tr>\n
<tr>\n
<td id="item4" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onClick="commit(1,document.getElementById(\'main_form\'))">Commit</td>\n
<td id="item4" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onclick="commit(1,document.getElementById(\'main_form\'))">Commit</td>\n
</tr>\n
<tr>\n
<td id="item5" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onClick="revert(1,document.getElementById(\'main_form\'))">Revert</td>\n
<td id="item5" style="text-align: center;" onMouseOver="this.style.backgroundColor=\'#dae6e6\'" onMouseOut="this.style.backgroundColor=\'#ffffff\'" onclick="revert(1,document.getElementById(\'main_form\'))">Revert</td>\n
</tr>\n
</table>\n
</td></tr>\n
......
673
\ No newline at end of file
674
\ No newline at end of file
......@@ -127,7 +127,7 @@
<td tal:condition="is_report_tree_mode"\n
class="Data" style="width: 50px; text-align: left; vertical-align: middle">\n
<select name="report_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
<tal:block tal:repeat="c here/getReportRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......
4
\ No newline at end of file
5
\ No newline at end of file
......@@ -49,7 +49,7 @@
list_index python: 5">\n
<span i18n:domain="erp5_ui" \n
i18n:translate=""\n
onClick="javascript:$(\'div.download-document-format-list-menu\').toggle();"> Download</span>\n
onclick="javascript:$(\'div.download-document-format-list-menu\').toggle();"> Download</span>\n
<div class="download-document-format-list-menu" style="opacity: 0.999999; display: none;">\n
<ul>\n
<li class="separator"\n
......@@ -74,7 +74,7 @@
</li>\n
</div>\n
<li class="toggle-hidden-format-dialog-selection-link">\n
<span onClick="javascript:toggleHiddenFormatDialogSelection();"\n
<span onclick="javascript:toggleHiddenFormatDialogSelection();"\n
i18n:domain="erp5_ui" \n
i18n:translate=""\n
title="Show more download formats"> More... </span>\n
......
1877
\ No newline at end of file
1878
\ No newline at end of file
......@@ -80,8 +80,8 @@
tal:define="selected_domain_path here/getSelectedDomainPath">\n
<div>\n
<div valign="top">\n
<select name="domain_root_url" onChange="submitAction(this.form, \'context/portal_selections/setDomainRoot\')"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/portal_selections/setDomainRoot\')">\n
<select name="domain_root_url" onchange="submitAction(this.form, \'context/portal_selections/setDomainRoot\')"\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/portal_selections/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -138,13 +138,13 @@
<input type="hidden" tal:attributes="id string:${field_id}_listMax; name string:${field_id}_listMax; value python: len(search_value_list)">\n
<input type="hidden" tal:attributes="id string:${field_id}_itemMax; name string:${field_id}_itemMax; value python: len(line_list)">\n
<br />\n
<span tal:attributes="id string:${field_id}_check; name string:${field_id}_check; onClick string:simple_aff(this.id)" class="div_short_mode" i18n:translate="" i18n:domain="ui">Toggle Detailed Mode</span>\n
<span tal:attributes="id string:${field_id}_check; name string:${field_id}_check; onclick string:simple_aff(this.id)" class="div_short_mode" i18n:translate="" i18n:domain="ui">Toggle Detailed Mode</span>\n
\n
<select id="listbox_page_selection" name="list_start" title="Change Page" size="1"\n
onChange="submitAction(this.form, \'context/${field_id}_setPage\')"\n
onchange="submitAction(this.form, \'context/${field_id}_setPage\')"\n
tal:define="lines here/getMaxLineNumber"\n
tal:attributes="id string:${field_id}_page_selection;\n
onChange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
onchange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
i18n:domain="ui" i18n:attributes="title">\n
<option value="0"\n
tal:repeat="p python: range(0, here.total_pages)"\n
......@@ -195,8 +195,8 @@
<div tal:condition="is_report_tree_mode"\n
class="Data" style="width: 50px; text-align: left; vertical-align: middle;">\n
<select name="report_root_url"\n
onChange="submitAction(this.form, \'context/portal_selections/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/portal_selections/setReportRoot\')">\n
onchange="submitAction(this.form, \'context/portal_selections/setReportRoot\')"\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/portal_selections/setReportRoot\')">\n
<tal:block tal:repeat="c here/getReportRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -231,7 +231,7 @@
</tal:block>\n
<div name="selection_mui" style="padding-bottom: 5px;">\n
\n
<select id="select_search_field" onChange="javascript: showSearchSelectedColumn();" name="select_search_field">\n
<select id="select_search_field" onchange="javascript: showSearchSelectedColumn();" name="select_search_field">\n
<tal:block tal:repeat="valueX search_value_list">\n
<tal:block tal:define="\n
aliasX python: valueX[0];\n
......
......@@ -155,7 +155,7 @@ XXX: Folder_filter accesses selection directly\n
<div id="jump">\n
<span id="jump" metal:define-macro="jump">\n
<select name="select_jump"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doJump\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doJump\')">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Jump...</option>\n
<tal:block tal:repeat="jump actions/object_jump | nothing">\n
......@@ -189,7 +189,7 @@ XXX: Folder_filter accesses selection directly\n
<div id="actions">\n
<span id="action" metal:define-macro="action">\n
<select name="select_action"\n
tal:attributes="onChange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n
tal:attributes="onchange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Action...\n
</option>\n
......
......@@ -83,7 +83,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
}.get(dialog_category, \'Select\')"\n
i18n:translate="" i18n:domain="ui"></label>\n
<select name="select_dialog" id="dialog_selector"\n
onChange="submitAction(this.form,\'Base_doDialog\')">\n
onchange="submitAction(this.form,\'Base_doDialog\')">\n
<tal:block tal:repeat="action dialog_actions">\n
<option tal:attributes="value action/url;\n
selected python: action is current_action and \'selected\' or None"\n
......
......@@ -84,7 +84,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<div id="navigation_bar">\n
<div id="favourites" class="mod_badg">\n
<select name="select_favorite"\n
onChange="submitAction(this.form,\'Base_doFavorite\')"\n
onchange="submitAction(this.form,\'Base_doFavorite\')"\n
tal:define="ordered_global_actions python:here.getOrderedGlobalActionList(actions[\'global\']);\n
user_actions actions/user;">\n
<option selected="selected" value=""\n
......@@ -121,7 +121,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n
<div id="modules" class="mod_badg">\n
<select name="select_module"\n
onChange="submitAction(this.form,\'Base_doModule\')">\n
onchange="submitAction(this.form,\'Base_doModule\')">\n
tal:define="module_list here/ERP5Site_getModuleItemList;">\n
<option selected="selected" value="" i18n:translate="" i18n:domain="ui">ERP5 Modules</option>\n
<option tal:repeat="module here/ERP5Site_getModuleItemList"\n
......@@ -139,7 +139,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n
<div id="language" class="mod_badg">\n
<select name="select_language"\n
onChange="submitAction(this.form,\'Base_doLanguage\')">\n
onchange="submitAction(this.form,\'Base_doLanguage\')">\n
<option value=""\n
i18n:translate="" i18n:domain="ui">My language</option>\n
<option tal:repeat="language python: here.Localizer.get_languages_map()"\n
......
......@@ -95,7 +95,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</div>\n
\n
<!-- <div class="aff_options">\n
<a class="list_mode link" title="List Mode" onClick="affOptions()">\n
<a class="list_mode link" title="List Mode" onclick="affOptions()">\n
<span class="mobil" i18n:translate="" i18n:domain="ui"> < Options ></span> \n
</a>\n
</div> -->\n
......@@ -113,7 +113,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n
<div id="actions">\n
<select name="select_action"\n
tal:attributes="onChange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n
tal:attributes="onchange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Action...\n
</option>\n
......
67
\ No newline at end of file
68
\ No newline at end of file
......@@ -80,7 +80,7 @@
<tr>\n
<td valign="top">\n
<select name="domain_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -194,7 +194,7 @@
tal:define="lines here/getMaxLineNumber"\n
tal:attributes="id string:${field_id}_page_selection;\n
name string:${field_id}_list_start;\n
onChange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
onchange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
i18n:domain="ui" i18n:attributes="title">\n
<option value="0"\n
tal:repeat="p python: range(0, here.total_pages)"\n
......
941
\ No newline at end of file
942
\ No newline at end of file
......@@ -68,7 +68,7 @@
}.get(dialog_category, \'Select\')"\n
i18n:translate="" i18n:domain="ui"></label>\n
<select name="select_dialog" id="dialog_selector"\n
onChange="submitAction(this.form,\'Base_doDialog\')">\n
onchange="submitAction(this.form,\'Base_doDialog\')">\n
\n
<tal:block tal:repeat="action dialog_actions">\n
<option tal:attributes="value action/url;\n
......
67
\ No newline at end of file
68
\ No newline at end of file
......@@ -44,7 +44,7 @@
<img src="web_site_module/ung/ung_images/arrow_20C.png">\n
<ul>\n
<tal:block tal:repeat="language python: filter(lambda x: x != current_language, here.Localizer.get_supported_languages())">\n
<li><span tal:attributes="id language" onClick="changeLanguage(this.innerHTML)" tal:content="language">Language</span></li>\n
<li><span tal:attributes="id language" onclick="changeLanguage(this.innerHTML)" tal:content="language">Language</span></li>\n
</tal:block>\n
</ul>\n
</li>\n
......
412
\ No newline at end of file
413
\ No newline at end of file
......@@ -66,7 +66,7 @@
}.get(dialog_category, \'Select\')"\n
i18n:translate="" i18n:domain="ui"></label>\n
<select name="select_dialog" id="dialog_selector"\n
tal:attributes="onChange string:submitAction(this.form,\'Base_doDialog\')">\n
tal:attributes="onchange string:submitAction(this.form,\'Base_doDialog\')">\n
\n
<tal:block tal:repeat="action dialog_actions">\n
<option tal:attributes="value action/url;\n
......
171
\ No newline at end of file
172
\ No newline at end of file
......@@ -40,7 +40,7 @@
\074tal:block metal:define-macro="master"\076\n
\074span id="jump" class="jump" metal:define-macro="jump"\076\n
\074select name="select_jump"\n
onChange="submitAction(this.form,\'Base_doJump\')"\076\n
onchange="submitAction(this.form,\'Base_doJump\')"\076\n
\074option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui"\076Jump...\074/option\076\n
\074/select\076\n
......@@ -56,7 +56,7 @@
\n
\074span id="action" class="action" metal:define-macro="action"\076\n
\074select name="select_action"\n
onChange="submitAction(this.form,\'Base_doAction\')"\076\n
onchange="submitAction(this.form,\'Base_doAction\')"\076\n
\074option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui"\076Action...\074/option\076\n
\074/select\076\n
......
......@@ -41,7 +41,7 @@
\074span id="favourites" class="favourites"\076\n
\n
\074select name="select_favorite"\n
onChange="submitAction(this.form,\'Base_doFavorite\')"\076\n
onchange="submitAction(this.form,\'Base_doFavorite\')"\076\n
\074option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui"\076My Favourites\074/option\076\n
\074/select\076\n
......@@ -59,7 +59,7 @@
\074span id="modules" class="modules"\076\n
\n
\074select name="select_module"\n
onChange="submitAction(this.form,\'Base_doModule\')"\076\n
onchange="submitAction(this.form,\'Base_doModule\')"\076\n
\n
\074option selected="selected" value="" i18n:translate="" i18n:domain="ui"\076Modules\074/option\076\n
\074/select\076\n
......@@ -76,7 +76,7 @@
\074span class="second"\076\n
\074span id="language" class="language"\076\n
\074select name="select_language"\n
onChange="submitAction(this.form,\'Base_doLanguage\')"\076\n
onchange="submitAction(this.form,\'Base_doLanguage\')"\076\n
\n
\074option value=""\n
i18n:translate="" i18n:domain="ui"\076My Language\074/option\076\n
......
25
\ No newline at end of file
26
\ No newline at end of file
......@@ -49,7 +49,7 @@
<span class="first">\n
<span id="favourites">\n
<select name="select_favorite"\n
onChange="submitAction(this.form,\'Base_doFavorite\')"\n
onchange="submitAction(this.form,\'Base_doFavorite\')"\n
tal:define="ordered_global_actions python:here.getOrderedGlobalActionList(actions[\'global\']);\n
user_actions actions/user;">\n
<option selected="selected" value=""\n
......@@ -87,7 +87,7 @@
\n
<span id="modules">\n
<select name="select_module"\n
onChange="submitAction(this.form,\'Base_doModule\')"\n
onchange="submitAction(this.form,\'Base_doModule\')"\n
tal:define="module_list here/ERP5Site_getModuleItemList;">\n
<option selected="selected" value="" i18n:translate="" i18n:domain="ui">Modules</option>\n
<option tal:repeat="module module_list"\n
......@@ -100,7 +100,7 @@
\n
<span id="language">\n
<select name="select_language"\n
onChange="submitAction(this.form,\'Base_doLanguage\')">\n
onchange="submitAction(this.form,\'Base_doLanguage\')">\n
<option value=""\n
i18n:translate="" i18n:domain="ui">My Language</option>\n
<option tal:repeat="language python: here.Localizer.get_languages_map()"\n
......
79
\ No newline at end of file
80
\ No newline at end of file
......@@ -132,7 +132,7 @@
\n
<!-- Select domain node -->\n
<select name="domain_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
<tal:block tal:repeat="c here/getDomainRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......@@ -246,7 +246,7 @@
<th tal:condition="is_report_tree_mode"\n
class="listbox-table-report-tree-selection-cell">\n
<select name="report_root_url"\n
tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
tal:attributes="onchange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
<tal:block tal:repeat="c here/getReportRootList">\n
<option value="base_domain"\n
tal:define="path python: c[0]; title python: c[1]"\n
......
......@@ -42,7 +42,7 @@
<tal:block metal:define-macro="master">\n
<span id="jump" class="jump" metal:define-macro="jump">\n
<select name="select_jump"\n
onChange="submitAction(this.form,\'Base_doJump\')">\n
onchange="submitAction(this.form,\'Base_doJump\')">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Jump...</option>\n
<tal:block tal:repeat="jump actions/object_jump | nothing">\n
......@@ -77,7 +77,7 @@
\n
<span id="action" class="action" metal:define-macro="action">\n
<select name="select_action"\n
onChange="submitAction(this.form,\'Base_doAction\')">\n
onchange="submitAction(this.form,\'Base_doAction\')">\n
<option selected="selected" value=""\n
i18n:translate="" i18n:domain="ui">Action...</option>\n
<tal:block tal:repeat="content_id here/getVisibleAllowedContentTypeList | nothing">\n
......
......@@ -88,7 +88,7 @@
}.get(dialog_category, \'Select\')"\n
i18n:translate="" i18n:domain="ui"></label>\n
<select name="select_dialog" id="dialog_selector"\n
onChange="submitAction(this.form,\'Base_doDialog\')">\n
onchange="submitAction(this.form,\'Base_doDialog\')">\n
\n
<tal:block tal:repeat="action dialog_actions">\n
<option tal:attributes="value action/url;\n
......
......@@ -55,7 +55,7 @@
<button tal:condition="python: not is_web_mode and form_action"\n
type="submit" class="save" title="Save"\n
tal:attributes="name string:${form_action}:method;\n
onClick string:javascript:clickSaveButton(\'${form_action}\');"\n
onclick string:javascript:clickSaveButton(\'${form_action}\');"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Save</span>\n
......
......@@ -44,7 +44,7 @@
<span class="first">\n
<span id="favourites" class="favourites">\n
<select name="select_favorite"\n
onChange="submitAction(this.form,\'Base_doFavorite\')"\n
onchange="submitAction(this.form,\'Base_doFavorite\')"\n
tal:define="ordered_global_actions python:here.getOrderedGlobalActionList(actions[\'global\']);\n
user_actions actions/user;">\n
<option selected="selected" value=""\n
......@@ -81,7 +81,7 @@
<span class="separator"><!--separator--></span>\n
<span id="modules" class="modules">\n
<select name="select_module"\n
onChange="submitAction(this.form,\'Base_doModule\')"\n
onchange="submitAction(this.form,\'Base_doModule\')"\n
tal:define="module_list here/ERP5Site_getModuleItemList;">\n
<option selected="selected" value="" i18n:translate="" i18n:domain="ui">Modules</option>\n
<option tal:repeat="module module_list"\n
......@@ -101,7 +101,7 @@
<span id="language" class="language">\n
<select name="select_language"\n
tal:define="language_list python:portal.portal_preferences.getPreference(\'preferred_user_interface_language_list\', None)"\n
onChange="submitAction(this.form,\'Base_doLanguage\')">\n
onchange="submitAction(this.form,\'Base_doLanguage\')">\n
<option value=""\n
i18n:translate="" i18n:domain="ui">My Language</option>\n
<tal:block tal:repeat="language python:portal.Localizer.get_languages_map()">\n
......
......@@ -67,8 +67,8 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
<tal:block tal:repeat="nb python:range(3)"> &nbsp; <!-- Adding spaces --> </tal:block>\n
\n
<b tal:replace="nothing"><!-- report path selection --></b>\n
<select name="report_root_url" onChange="submitAction(this.form,\'/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/setReportRoot\')">\n
<select name="report_root_url" onchange="submitAction(this.form,\'/setReportRoot\')"\n
tal:attributes="onchange string:submitAction(this.form,\'${address}/setReportRoot\')">\n
<tal:block tal:condition="python:basic.selection is None"\n
tal:define="global selection_report_path python:basic.report_root_list[0][0]" />\n
<tal:block tal:condition="python:basic.selection is not None"\n
......@@ -111,9 +111,9 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
tal:attributes="src string:${address}/images/1leftarrowv.png" />\n
</tal:block>\n
<select name="list_start" title="Change Page" size="1"\n
onChange=""\n
onchange=""\n
tal:condition="python:basic.report_axis_info[\'bound_page_total\'] &gt; 1"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/setPage\')">\n
tal:attributes="onchange string:submitAction(this.form,\'${address}/setPage\')">\n
<tal:block tal:repeat="current_page_number python:range(basic.report_axis_info[\'bound_page_total\']+1)[1:]">\n
<tal:block tal:condition="python:current_page_number==basic.report_axis_info[\'bound_page_current\']">\n
<b tal:replace="nothing"> actual page is selected </b>\n
......@@ -148,8 +148,8 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
\n
<tal:block tal:repeat="nb python:range(1)"> &nbsp; </tal:block>\n
\n
<select name="lane_path" onChange="submitAction(this.form,\'/setLanePath\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/setLanePath\')">\n
<select name="lane_path" onchange="submitAction(this.form,\'/setLanePath\')"\n
tal:attributes="onchange string:submitAction(this.form,\'${address}/setLanePath\')">\n
<tal:block tal:condition="python:basic.selection is None"\n
tal:define="global selection_report_path python:basic.lane_root_list[0][0]" />\n
<tal:block tal:condition="python:basic.selection is not None"\n
......
......@@ -59,7 +59,7 @@
<label for="dialog_selector"\n
i18n:translate="" i18n:domain="ui">Select Template</label>\n
<select name="select_dialog" id="dialog_selector"\n
onChange="submitAction(this.form,\'Base_doRelationDialog\')">\n
onchange="submitAction(this.form,\'Base_doRelationDialog\')">\n
<tal:block tal:repeat="proxy_listbox_id_item proxy_form_id_list">\n
<option tal:attributes="value python: proxy_listbox_id_item[0];\n
selected python: proxy_listbox_id_item[0] == proxy_listbox_id"\n
......
......@@ -68,7 +68,7 @@
<button tal:condition="python: not is_web_mode and form_action"\n
type="submit" class="save" title="Save"\n
tal:attributes="name string:${form_action}:method;\n
onClick string:javascript:clickSaveButton(\'${form_action}\');"\n
onclick string:javascript:clickSaveButton(\'${form_action}\');"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Save</span>\n
......
1102
\ No newline at end of file
1103
\ No newline at end of file
......@@ -42,7 +42,7 @@
<tr>
<td valign="top">
<select name="domain_root_url"
tal:attributes="onChange string:submitAction(this.form, '${context_url}/setDomainRoot')">
tal:attributes="onchange string:submitAction(this.form, '${context_url}/setDomainRoot')">
<tal:block tal:repeat="c here/getDomainRootList">
<option value="base_domain"
tal:define="path python: c[0]; title python: c[1]"
......@@ -156,7 +156,7 @@
tal:define="lines here/getMaxLineNumber"
tal:attributes="id string:${field_id}_page_selection;
name string:${field_id}_list_start;
onChange string:submitAction(this.form, '${context_url}/${field_id}_setPage')"
onchange string:submitAction(this.form, '${context_url}/${field_id}_setPage')"
i18n:domain="ui" i18n:attributes="title">
<option value="0"
tal:repeat="p python: range(0, here.total_pages)"
......@@ -183,7 +183,7 @@
<td tal:condition="is_report_tree_mode"
class="Data" style="width: 50px; text-align: left; vertical-align: middle">
<select name="report_root_url"
tal:attributes="onChange string:submitAction(this.form, '${context_url}/setReportRoot')">
tal:attributes="onchange string:submitAction(this.form, '${context_url}/setReportRoot')">
<tal:block tal:repeat="c here/getReportRootList">
<option value="base_domain"
tal:define="path python: c[0]; title python: c[1]"
......
......@@ -1633,7 +1633,7 @@ class TestDocument(TestDocumentMixin):
alert("da");
</script>
<a href="javascript:DosomethingNasty()">Link</a>
<a onClick="javascript:DosomethingNasty()">Another Link</a>
<a onclick="javascript:DosomethingNasty()">Another Link</a>
<p>éàèù</p>
<p class="Th&#232;mes Thèmes">Th&#232;mes Thèmes</p>
</body>
......@@ -1668,7 +1668,7 @@ class TestDocument(TestDocumentMixin):
self.assertTrue('javascript' not in safe_html)
self.assertTrue('alert("da");' not in safe_html)
self.assertTrue('javascript:DosomethingNasty()' not in safe_html)
self.assertTrue('onClick' not in safe_html)
self.assertTrue('onclick' not in safe_html)
# Check that outputed entire html is safe
entire_html = web_page.asEntireHTML()
......@@ -1684,7 +1684,7 @@ class TestDocument(TestDocumentMixin):
self.assertTrue('javascript' not in entire_html)
self.assertTrue('alert("da");' not in entire_html)
self.assertTrue('javascript:DosomethingNasty()' not in entire_html)
self.assertTrue('onClick' not in entire_html)
self.assertTrue('onclick' not in entire_html)
# now check converted value is stored in cache
format = 'html'
......
......@@ -113,7 +113,7 @@ function toggleSelect() {
<script type="text/javascript">
<!--
if (document.forms[0]) {
document.write('<input class="form-element" type="submit" name="selectButton" value="Select All" onClick="toggleSelect(); return false">')
document.write('<input class="form-element" type="submit" name="selectButton" value="Select All" onclick="toggleSelect(); return false">')
}
//-->
</script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment