WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
95548
Some whitespace characters and joiners are not rendered as entities in MarkupAccumulator
https://bugs.webkit.org/show_bug.cgi?id=95548
Summary
Some whitespace characters and joiners are not rendered as entities in Markup...
Alexander Pavlov (apavlov)
Reported
2012-08-31 03:32:08 PDT
http://getfirebug.com/developer/api/firebug1.6X/symbols/src/content_firebug_lib.js.html
, lines 2186-2194 list a few "invisible" characters that have corresponding HTML entities. Some of these entities, however, are never rendered in the markup generated for text nodes. This is the list of Unicode characters along with entities that should be generated for them: 0x2002 - 'ensp' 0x2003 - 'emsp' 0x2009 - 'thinsp' 0x200c - 'zwnj' 0x200d - 'zwj' 0x200e - 'lrm' 0x200f - 'rlm' 0x200b - '#8203'
Attachments
Patch
(12.29 KB, patch)
2012-08-31 05:47 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-08-31 05:47:31 PDT
Created
attachment 161676
[details]
Patch
Alexey Proskuryakov
Comment 2
2012-08-31 10:18:04 PDT
Please elaborate on why these characters should be encoded, and whether that matches other browsers. Also, please test what happens with XML - it's not OK to use these named entities in raw XML documents.
Darin Adler
Comment 3
2012-08-31 12:05:10 PDT
Comment on
attachment 161676
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=161676&action=review
> Source/WebCore/ChangeLog:16 > + Add the following entities to be rendered in the generated markup: > + -   > + -   > + -   > + - ‌ > + - ‍ > + - ‎ > + - ‏ > + - ​ (zero-width space, '\u200b')
Why? Does the specification say that these need to be entities and not just characters?
Alexander Pavlov (apavlov)
Comment 4
2012-08-31 22:57:28 PDT
(In reply to
comment #3
)
> (From update of
attachment 161676
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=161676&action=review
[...]
> Why? Does the specification say that these need to be entities and not just characters?
Aha, I finally found the spec and take my words back! Sorry for the noise.
Benjamin Poulain
Comment 5
2012-08-31 23:43:09 PDT
Comment on
attachment 161676
[details]
Patch
> > Why? Does the specification say that these need to be entities and not just characters? > > Aha, I finally found the spec and take my words back! Sorry for the noise.
I assume you also meant to clear the review flag?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug