3 ms·
Yeah, that's how the linked article does it, but that's ... icky? It's still a token spanning multiple parents, it's just masquerading as a couple of self-closi
by thomascgalvin 4y ago
Yeah, that's how the linked article does it, but that's ... icky? It's still a token spanning multiple parents, it's just masquerading as a couple of self-closing tags.
Which, of course, is the point of the article, and why this is a difficult problem.
- lioeters 4y agoAh you're right, I should have read the article before commenting, haha. I agree it's not an ideal solution. A disadvantage I imagine is that this syntax pushes the problem onto the parser/consumer to keep track of overlapping regions. > Milestones are empty elements that mark the beginning and end of a component, typically using the XML ID mechanism to indicate which "begin" element goes with which "end" element. https://en.wikipedia.org/wiki/Overlapping_markup#Milestones https://en.wikipedia.org/wiki/Overlapping_markup#Milestones