<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>18769</bug_id>
          
          <creation_ts>2008-04-27 02:02:57 -0700</creation_ts>
          <short_desc>replacing &amp;nbsp; with spaces using regexp creates inconsistent result</short_desc>
          <delta_ts>2008-05-05 00:15:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11947</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joshua">admin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79033</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua">admin</who>
    <bug_when>2008-04-27 02:02:57 -0700</bug_when>
    <thetext>Replacing all &apos;&amp;nbsp;&apos; with &apos; &apos; in a text using regexp object, replaces the &apos;&amp;nbsp;&apos;  with extended ascii charecter 160 which is \u0A0.  It should replace them with ascii 32. 

I think &amp;nbsp is considered as a single character when used with regexp object which should not be the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79065</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-04-27 17:40:15 -0700</bug_when>
    <thetext>U+00A0 is the code point of the non-breaking space, which suggests to me that no replacing is going on.  Can you please attach an example of code that does not work as you expect?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79564</commentid>
    <comment_count>2</comment_count>
      <attachid>20946</attachid>
    <who name="Joshua">admin</who>
    <bug_when>2008-05-03 03:24:59 -0700</bug_when>
    <thetext>Created attachment 20946
Test case for the problem

The additional interesting thing is that putting couple of carriage returns after the &lt;/body&gt; tag is included in document.body.innerHTML. May be a separate bug though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79565</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua">admin</who>
    <bug_when>2008-05-03 03:26:20 -0700</bug_when>
    <thetext>As you can see from the test case the &apos;&amp;nbsp;&apos; is replaced with character code 160. It should have been all 32.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79657</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-05 00:15:33 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 11947 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20946</attachid>
            <date>2008-05-03 03:24:59 -0700</date>
            <delta_ts>2008-05-03 03:24:59 -0700</delta_ts>
            <desc>Test case for the problem</desc>
            <filename>regexp.htm</filename>
            <type>text/html</type>
            <size>322</size>
            <attacher name="Joshua">admin</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjxzY3JpcHQ+DQpmdW5jdGlvbiBnZXRDb250ZW50KCkgew0KICAgdmFy
IHJlZ3g9bmV3IFJlZ0V4cCgnJm5ic3A7JywnZ2knKTsNCiAgIHZhciBhPWRvY3VtZW50LmJvZHku
aW5uZXJIVE1MLnJlcGxhY2UocmVneCwnICcpOw0KICAgdmFyIGg9Jyc7DQogICBmb3IodmFyIGk9
MDtpPGEubGVuZ3RoO2krKyloKz1hLmNoYXJDb2RlQXQoaSkrJywnOw0KICAgYWxlcnQoaCk7DQp9
DQo8L3NjcmlwdD4NCjwvaGVhZD4NCjxib2R5IG9ubG9hZD0iZ2V0Q29udGVudCgpIj4mbmJzcDsm
bmJzcDsmbmJzcDsmbmJzcDsmbmJzcDs8L2JvZHk+PC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>