2 ms·
They are not supposed to be used for versioning HTML documents. For example they cannot indicate if you change the HTML head or if you change markup. What they
by olavk 17y ago
They are not supposed to be used for versioning HTML documents. For example they cannot indicate if you change the HTML head or if you change markup. What they can indicate, is changes in content.
I don't think you should necessarily store versioning history of content with INS and DEL tags. If you have a CMS you might have each historic version of content. If the user requests a diff, you can generate it automatically by comparing versions, but you can represent that diff for the user by using INS and DEL elements.
- omouse 17y agoIt's beautiful that this is the one spot where the W3C got the content/presentation separation correctly. * but you can represent that diff for the user by using INS and DEL elements.* This would be false. No thank you. The whole point of including the datetime attribute is to allow for storing the versions in the document itself. HTML should never be hand-coded and should only be interacted with via a good editor. However, there aren't too many of those around. The default web browser behaviour for dealing with the INS and DEL elements is incorrect and the cause of it is a lack of understanding of what those elements are for and why they were included in the spec.