js align and valign to style
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/d0a6d6e8 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/d0a6d6e8 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/d0a6d6e8 Branch: refs/heads/master Commit: d0a6d6e895187422547d7e4a3e16d1276ba2e948 Parents: 1de0e77 Author: Aleksandr Mashchenko <[email protected]> Authored: Tue Jun 3 19:38:43 2014 +0300 Committer: Aleksandr Mashchenko <[email protected]> Committed: Tue Jun 3 19:38:43 2014 +0300 ---------------------------------------------------------------------- core/src/main/resources/template/xhtml/validation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/d0a6d6e8/core/src/main/resources/template/xhtml/validation.js ---------------------------------------------------------------------- diff --git a/core/src/main/resources/template/xhtml/validation.js b/core/src/main/resources/template/xhtml/validation.js index e63751b..de4b0bd 100644 --- a/core/src/main/resources/template/xhtml/validation.js +++ b/core/src/main/resources/template/xhtml/validation.js @@ -109,8 +109,7 @@ function addErrorXHTML(e, errorText) { var tr = document.createElement("tr"); var td = document.createElement("td"); var span = document.createElement("span"); - td.align = "center"; - td.valign = "top"; + td.style = "text-align: center; vertical-align: top;"; td.colSpan = 2; span.setAttribute("class", "errorMessage"); span.setAttribute("className", "errorMessage"); //ie hack cause ie does not support setAttribute
