- Move the setting of newline_handling early enough that Initialize()
can see it.
- Reduce the set of characters that trigger the slow path for
attribute values for the NewLineHandling.None case.
- Rewrite the handling of \t, \r and \n to match the MS docs
(which match the observed behavior of their implementation)
- Add some tests.
It's a bit difficult decision, as the "relative URI" could be any path string
that contain colons as a *valid* path (especially on *nix land).
We historically did allow such string that contain "http:" etc. as to be
treated as absolute (which historically worked long time).
But this test case uncovered possible other cases.
Hopefully this does not bring issues that is pretty much anticipated. Such
issues could also happen in older code anyways.
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* XmlDefaultWriter.cs : add state management support.
* XmlWriter.cs : use above feature for "null Settings in source
writer" case. This brings some minor .NET compatibility and
should fix bug #607697.
* XmlWriterTests.cs : remove NotWorking everywhere.
svn path=/trunk/mcs/; revision=159714
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
and corcompare).
* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
wrapping writer instance.
If there was no Settings specified, return null.
* System.Xml.dll.sources,
moonlight_raw_System.Xml.dll.sources,
monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.
* XmlWriterTests.cs : add a bit more assertions.
Remove NotWorking from some tests.
svn path=/trunk/mcs/; revision=159712
* XmlWriterTests.cs : add test matrix for understanding things.
Make those test names consistent. Mark as NotWorking.
svn path=/trunk/mcs/; revision=159704
* XmlDocument.cs : it seems .net does allow Load() with such an xml
reader positioned in the middle of the document. Fixed bug #598953.
* XmlDocumentTests.cs : add test for bug #598953.
svn path=/trunk/mcs/; revision=156278
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
used for qname, treats non-prefixed name as in default namespace.
* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
qname, with default namespace.
svn path=/trunk/mcs/; revision=154272
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
storing of zeros. Fixed bug #543332.
* XmlReaderCommonTests.cs : added test for bug #543332.
svn path=/trunk/mcs/; revision=150347
* XmlConvert.cs : Do not ignore ticks which are less than a
millisecond. Remove trailing zeros for milliseconds and ticks.
* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
ticks.
svn path=/trunk/mcs/; revision=149618
* XmlConvert.cs : trim spaces when parsing TimeSpan.
* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.
svn path=/trunk/mcs/; revision=149617
* XmlConvert.cs : DateTimeOffset parse is sloppy.
* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
string with spaces.
svn path=/trunk/mcs/; revision=149609
* XmlConvertTests.cs : added commented-out tests for the remaining
parse tests by Tiaan Geldenhuys for XLinq, with the reason why.
svn path=/trunk/mcs/; revision=149388
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
* XmlConvertTests.cs : float parse should do the same. Fix NaN test.
svn path=/trunk/mcs/; revision=149386
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
with whitespace allowed.
* XmlConvertTests.cs : another double parse test for string with
spaces, for string constants such as NaN.
svn path=/trunk/mcs/; revision=149385