Re: [css-gcpm] order of text replace vs. whitespace processing

Håkon Wium Lie <> wrote on 2009/03/31 23:42:46
> I believe implementation keep the white-space around until just before
> the presentation -- if they threw it out at parse time they wouldn't
> be able to support the 'white-space' property.
> As such, I would suggest specifying that 'text-replace' is evaluated
> before 'white-space'.
> What do implementors think?

I think that the text-replace should be applied to the result of the
white-space processing. Consider the following example:

    p { text-replace: "Soviet Union" "Russia"; }

   The following two paragraphs should be same (Hello Russia):
    <p>Hello Soviet Union!</p>
    <p>Hello Soviet

Our implementation (AH Formatter) does this.


Shinyu Murakami
Antenna House Formatter

Received on Tuesday, 31 March 2009 16:27:32 UTC