if (!settings.valid_elements) {
            // No valid elements defined then clone the elements from the schema spec
            each(schemaItems, function(element, name) {
                elements[name] = {
                    attributes : element.attributes,