[gxml/gsoc2013: 88/150] ProcessingInstruction.vala: handle spec'd errors



commit 0b7741420cb0407e4a4cb4830cfbc3b7277bf3de
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 b8d8065..46f60b4 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]