[gxml/gsoc2013] Document.vala: don't return null on create_element if invalid characters have been specified; print
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013] Document.vala: don't return null on create_element if invalid characters have been specified; print
- Date: Sun, 28 Jul 2013 05:33:55 +0000 (UTC)
commit faf06ccdb0690880acce58b4393fbc4e2bd89c18
Author: Richard Schwarting <aquarichy gmail com>
Date: Sun Jul 28 01:30:11 2013 -0400
Document.vala: don't return null on create_element if invalid characters have been specified; print a
g_warning and proceed instead (libxml2 accepts invalid characters anyway)
gxml/Document.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gxml/Document.vala b/gxml/Document.vala
index b12c800..55e53bd 100644
--- a/gxml/Document.vala
+++ b/gxml/Document.vala
@@ -514,9 +514,7 @@ namespace GXml {
// TODO: what should we be passing for ns other than old_ns? Figure it out; needed
for level 2+ support
Xml.Node *xmlelem;
- if (!check_invalid_characters (tag_name, "element")) {
- return null;
- }
+ check_invalid_characters (tag_name, "element");
xmlelem = this.xmldoc->new_node (null, tag_name, null);
this.new_nodes.append (xmlelem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]