summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/implementation.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/implementation.c b/src/core/implementation.c
index 6041c22..c80af7f 100644
--- a/src/core/implementation.c
+++ b/src/core/implementation.c
@@ -74,26 +74,12 @@ dom_exception dom_implementation_create_document_type(
return err;
}
- if (qname_s != NULL && _dom_validate_name(qname_s) == false) {
- dom_string_unref(qname_s);
- return DOM_INVALID_CHARACTER_ERR;
- }
-
err = _dom_namespace_split_qname(qname_s, &prefix, &lname);
if (err != DOM_NO_ERR) {
dom_string_unref(qname_s);
return err;
}
- if ((prefix != NULL && _dom_validate_ncname(prefix) == false) ||
- (lname != NULL &&
- _dom_validate_ncname(lname) == false)) {
- dom_string_unref(lname);
- dom_string_unref(prefix);
- dom_string_unref(qname_s);
- return DOM_NAMESPACE_ERR;
- }
-
if (public_id != NULL) {
err = dom_string_create((const uint8_t *) public_id,
strlen(public_id), &public_id_s);