function getElementRule(name) {
            var element = elements[name], i;

            // Exact match found
            if (element)