mikedeboer / jsDAV

jsDAV allows you to easily add WebDAV support to a NodeJS application. jsDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.
http://www.mikedeboer.nl
MIT License
681 stars 159 forks source link

Xml.toClarkNotation() must not lowercase names #94

Closed tripodsan closed 2 years ago

tripodsan commented 10 years ago

Converting the property names to lowercase yields to problems when dealing with PROPFINDs that have properties with case sensitive names.

suggest to remove the toLowerCase() in https://github.com/mikedeboer/jsDAV/blob/master/lib/shared/xml.js#L58

mikedeboer commented 10 years ago

but... XML is not case-sensitive?!

tripodsan commented 10 years ago

yes they are: http://www.w3.org/TR/html-markup/documents.html#case-insensitivity:

In documents in the XML syntax:

Tag names for HTML elements must exactly match the names of the elements given in the HTML > elements section of this document; that is, tag names are case-sensitive. Attribute names for HTML elements must exactly match the names of the attributes given in the > HTML elements section of this document; that is, attribute names are case-sensitive.