[Bug 10583] toString does not represent what WebKit and Mozilla do, which is to return only the text within the selection that is visible to the user.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10583


Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |annevk@opera.com,
                   |                            |ian@hixie.ch,
                   |                            |Ms2ger@gmail.com




--- Comment #3 from Ian 'Hixie' Hickson <ian@hixie.ch>  2010-09-26 17:12:57 ---
It seems it's even more subtle than that... if I take your example but make the
script element display:block, I get the script's contents with newlines around
it in the .toString() output.

I really don't want to make HTML depend on detailed CSS stuff for its
definitions.

Anne, is there anything I can reference that can define this? Ms2ger, is there
any chance you can take Selection wholesale and put it in DOM Range?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 26 September 2010 17:13:01 UTC