[Mono-bugs] [Bug 52576][Nor] New - Depth for attribute values in XmlNodeReader is too small

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jan 2004 10:52:54 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by roland.flury@epfl.ch.


--- shadow/52576	2004-01-03 10:52:54.000000000 -0500
+++ shadow/52576.tmp.15036	2004-01-03 10:52:54.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 52576
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: roland.flury@epfl.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Depth for attribute values in XmlNodeReader is too small
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The Depth attribute returns a value that is by 1 too small for attribute
+"The System.Xml.XmlReader.Depth of an attribute value node is one plus the
+depth of the attribute node" [ECMA, TG3, Class Library XML (xml.zip), found
+on msdn.microsoft.com/net/ecma/, in file System.Xml.XmlReader.pdf]
+Steps to reproduce the problem:
+1. Parse file with content '<B U="G"/>' with XmlNodeReader (or any XML file:)
+2. Display Depth for each attribute and attribute values
+Actual Results:
+Depth for B: 0
+Depth for U: 0
+Expected Results:
+Depth for B: 0
+Depth for U: 1
+How often does this happen? 
+Additional Information:
+- Microsoft .NET produces expected result
+- The quoted text above originates from a 'Note' for the
+ReadAttributeValue() method.