Luca Passani wrote: > My code is separating content from presentation for real. Your code > isn't. Your code is a mess. I really don't follow you. Neither set of outputs corrupt meaning by making it reliant on presentation. However, your output mixes presentation and content, such that the style and content are output in the same place and styles cannot be overridden if necessary (because of the "style" attribute's specificity). My output puts them in separate places, and allows styles to be overridden if necessary. My code would allows the creation of media-specific styles or multiple skins, but yours would not, given the current limitations of the style attribute. That's what I mean by your content being intrinsically bound to your presentation. The code differences simply reflect the different outputs. As such the code differences in themselves are not ugly or hacks (in either case); they are simply doing a different job. -- Benjamin Hawkes-LewisReceived on Tuesday, 1 July 2008 09:59:01 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:59:38 GMT