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

Håkon Wium Lie <howcome@opera.com> 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
     Union!</p>

Our implementation (AH Formatter) does this.

Regards,

-- 
Shinyu Murakami
http://www.antennahouse.com
Antenna House Formatter
http://www.antenna.co.jp/AHF/en/

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