sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.51k stars 344 forks source link

Wrong tag name calendar-data => supported-calendar-data #228

Closed evert closed 11 years ago

evert commented 11 years ago

Original author: lars.kne...@gmail.com (September 24, 2011 06:57:03)

I think the correct tag name should be supported-calendar-data instead of calendar-data.

--- a/Sabre/CalDAV/Property/SupportedCalendarData.php +++ b/Sabre/CalDAV/Property/SupportedCalendarData.php @@ -28,7 +28,7 @@

     $prefix = isset($server->xmlNamespaces[Sabre_CalDAV_Plugin::NS_CALDAV])?$server->xmlNamespaces[Sabre_CalDAV_Plugin::NS_CALDAV]:'cal';

Original issue: http://code.google.com/p/sabredav/issues/detail?id=155

evert commented 11 years ago

From evert...@gmail.com on September 24, 2011 19:11:35: No, this is in fact correct.

The xml element in 'supported-calendar-data' is 'calendar-data'. Property classes are never responsible for encoding the 'top element', but only their contents.

evert commented 11 years ago

From lars.kne...@gmail.com on September 25, 2011 07:26:53: Ok. That makes sense.