|
This is a weird issue and I'm not quite happy with the current solution. Consider for instance the following comment: <!-- workaround for DOXIA-227: (fixed in Doxia 1.1, was 1.0-beta-1) -->
This gets re-written to <!-- workaround for DOXIA -227: (fixed in Doxia 1.1, was 1.0 -beta -1) -->
However, the original comment is perfectly valid according to http://validator.w3.org/ IIUC only double-hyphens and trailing hyphens are illegal inside comments but I couldn't find any conclusive reference, so not really sure. Given that uncertainty, I think Doxia shouldn't change any user input at will. I would prefer either to only change double hyphens (to make w3c happy), or to not re-write comments at all (and maybe issue a warning). After all it's the user's responsibility to provide valid input. WDYT?
The XML Spec Exactly, and this only covers the two cases I mentioned: double-hyphens and trailing hyphens, am I right? more generic resolution in r779565 |
|||||||||||||||||||||||||||||||||||||||||
fixed in r779250