Ian Hickson wrote: > On Thu, 14 Nov 2002, Etan Wexler wrote: > >>The 'white-space-treatment' property has license to change the characters >>underlying a presentation. The 'word-spacing' property has license only to >>change the presentation, as in the glyphs and metrics used. If I have an >>element with "word-spacing: none" and I perform a copy operation and then >>paste, I better get the spaces with the rest of the text. > > > white-space-treatment doesn't change the DOM. Whether copying comes from > the DOM or the final presentation is left up to the UA. If it comes from > the presentation, you'll get no spaces, you'll just get a text mode > representation of the screen. If it comes from the DOM, you'll get all the > original spaces and line breaks. I think I agree with this, but I'm not sure you adressed Etan's point entirely, because you didn't indicate whether you consider your logic to apply to word-spacing as well as white-space-treatment. In my opinion, it doesn't: setting word-spacing to none would be something like using a font where the space character has zero width: The space character is still there (even in the presentation layer) but doesn't have any visual representation. In that case I'd expect a paste to include the spaces, even if it was pasting from the presentation layer. Am I right, or crazy? Stuart. -- Stuart Ballard, Programmer NetReach - Internet Solutions (215) 283-2300, ext. 126 http://www.netreach.com/Received on Thursday, 14 November 2002 10:56:42 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:17 GMT