getbem.github.io icon indicating copy to clipboard operation
getbem.github.io copied to clipboard

"--" notation for modifiers breaks XML/XHTML when inside comment

Open pbb72 opened this issue 5 years ago • 0 comments

The following causes a fatal error in XML/XHTML, and will break any page interpreted as XML:

<!-- div class="block block--mod">...</div> -->

This is because the double dash is interpreted as a comment delimiter, when inside an SGML instruction (<! ... >).

While this problem occurs for any use of double dashes, it's regrettable when these are introduced as part of a system.

pbb72 avatar May 12 '20 13:05 pbb72