[gxml/gsoc2013: 52/69] ProcessingInstruction.vala: handle spec'd errors



commit 5ed7290cca45ae6ee116c102b3e492622c44304f
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Jul 27 00:01:54 2013 -0400

    ProcessingInstruction.vala: handle spec'd errors

 gxml/ProcessingInstruction.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gxml/ProcessingInstruction.vala b/gxml/ProcessingInstruction.vala
index 3ef1149..ae8ac3e 100644
--- a/gxml/ProcessingInstruction.vala
+++ b/gxml/ProcessingInstruction.vala
@@ -60,7 +60,9 @@ namespace GXml {
                // TODO: confirm that data here is freeform attributes
                public string data /* throws DomError (not supported yet) */ {
                        get;
-                       set;    //this.owner.last_error = new DomError.DOM ("Error");
+                       set {
+                               this.check_read_only (); // TODO: does this prevent data from being set? test
+                       };
                }
                /**
                 * The target name.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]