[RC4] word-spacing-characters-001 control element has too much space

http://test.csswg.org/suites/css2.1/20101210/xhtml1/word-spacing-characters-001.xht

It seems as if the current test has one to many spacer spans in it I have simplified the code a bit to be more in line to what the spec states. Word spacing should apply to every space, non-breaking space, etc... I have rearranged the spacers after each such word spacing position and my updated solution seems to make the case pass as expected per the spec.

   <div class="ws-pre">
     <p class="control"><span>A&nbsp;<span class="spacer"></span> <span class="spacer"></span> <span class="spacer"></span>&nbsp;<span class="spacer"></span> <span class="spacer"></span> <span class="spacer"></span>&#09;B</span></p>
     <p class="test"><span>A&nbsp;  &nbsp;  &#09;B</span></p>
   </div>

--
Thanks,
Arron Eicholz

Received on Saturday, 8 January 2011 02:48:36 UTC