From 683f72aaedafdfca70c08cd86f797da771dde6ba Mon Sep 17 00:00:00 2001 From: taggon Date: Tue, 6 Sep 2011 01:51:09 +0000 Subject: [PATCH] Validator skip fieldset elements as now. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9036 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/xml_js_filter.js | 1 + tests/common/js/index.html | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/common/js/xml_js_filter.js b/common/js/xml_js_filter.js index 79ea3a57d..42af5f388 100644 --- a/common/js/xml_js_filter.js +++ b/common/js/xml_js_filter.js @@ -105,6 +105,7 @@ var Validator = xe.createApp('Validator', { el = elems[i]; name = el.name; + if(!name || !elems[name]) continue; if(!elems[name].length || elems[name][0] === el) fields.push(name); }; fields = fields.join('\n'); diff --git a/tests/common/js/index.html b/tests/common/js/index.html index c6f19f873..31d375efa 100644 --- a/tests/common/js/index.html +++ b/tests/common/js/index.html @@ -22,12 +22,15 @@
- - - - - - +
+ Legend + + + + + + +