summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-11-03 23:58:06 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2012-11-03 23:58:20 (GMT)
commit7ee737e50a50519b93af93200720b3c3f0bbbbc0 (patch)
treed08ed03c2f3bf1a855f15a97442aaa8406a4edeb
parent15024114ed3af91058f85158803fb9c5e61b05fb (diff)
downloadlibdom-7ee737e50a50519b93af93200720b3c3f0bbbbc0.tar.gz
libdom-7ee737e50a50519b93af93200720b3c3f0bbbbc0.tar.bz2
Remove name validation from doctype creation.
-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);