[EMAIL PROTECTED] wrote:
> Related to this I've run into a problem with ZWSP. HTML says that ZWSP
> should collapse with other whitespace:
> http://www.w3.org/TR/html401/struct/text.html#didx-white_space-1

It looks like HTML5 redefines whitespace to exclude ZWSP and include several 
other characters [1]. You may want to talk to the WHATWG and see what they 
suggest you do.

[1] http://www.whatwg.org/specs/web-apps/current-work/#common1

> Currently we don't do this --- e.g.
> A​ ​ ​B
> Is rendered with two spaces.
> 
> If we try to do this, things get complicated because we need to track
> whether a run of whitespace is all zero-width whitespace (in which
> case it should collapse into a zero-width whitespace) or there's some
> non-zero-width whitespace (in which case it should collapse into a
> regular space). But the problem *then* is that we can no longer always
> retain the first space and eliminate the others. E.g.
> <span>&#x200b;</span>&#x200b; Foo
> We don't know whether the ZWSP in the span survives or not until we
> encounter the first non-ZWSP after it. This makes life very
> uncomfortable.
> 
> Any thoughts on what the right thing to do is here?
> 
> Rob
> 


-- 
dolphinling
<http://dolphinling.net/>
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to