Insignificant whitespace and formatting markup
At first you might think, "well, whitespace is just a text node, and that's always significant." There are two problems with this. First, in many languages whitespace isn't that significant (XHTML, MathML, SVG, RDF, etc.) - browsers could care less. Second, there's whitespace which isn't part of a DOM node: the spacing between attributes. Case in point:
Does anyone know of any algorithms or existing API's for dealing with this adequately? I'm likely to write my own, but I would appreciate seeing whatever others have come up with.
|All times are GMT +1. The time now is 01:57 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.