[Webkit-unassigned] [Bug 14862] contentEditable inserts non standard spaces
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 3 13:48:40 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14862
mrowe at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrowe at apple.com
------- Comment #4 from mrowe at apple.com 2007-08-03 13:48 PDT -------
The character that is inserted is a non-breaking space, just as Alexey
mentioned. In the case of the URL you provided, the character on the second
line between the quotation marks is a UTF-8 encoded non-breaking space. If you
change Safari's encoding via View -> Text Encodings, you will notice that it
renders as expected. It appears as an unexpected A-like character as it is
being interpreted according to the default encoding of the browser, which is
used when the server does not specify which encoding *should* be used.
In Alexey's example entering "A B" (that is, A followed by two spaces then a
B) is displayed in the alert as "A B (A%20%A0B)". Plugging this into a short
code snippet to display the names of the characters that compose that string
reveals:
>>> string = "A\x20\xA0B"
>>> map(unicodedata.name, string.decode('latin1'))
['LATIN CAPITAL LETTER A', 'SPACE', 'NO-BREAK SPACE', 'LATIN CAPITAL LETTER B']
I think this bug should probably be closed as everything appears to be working
as expected.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list