<?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>12237</bug_id>
          
          <creation_ts>2007-01-12 18:58:02 -0800</creation_ts>
          <short_desc>Can&apos;t render ampersands in URLs if content type is application/xhtml+xml</short_desc>
          <delta_ts>2007-01-13 03:24:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>419.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Rick Mann">rmann</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35279</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Mann">rmann</who>
    <bug_when>2007-01-12 18:58:02 -0800</bug_when>
    <thetext>If I serve a page as &quot;application/xhtml+xml&quot;, and include something like the following in the markup:

    &lt;a href=&quot;SearchSubmit.do?t=e&amp;amp;fid=&amp;amp;ps=&amp;amp;p=2&quot;&gt;next&lt;/a&gt;

Then the URI that Safari wants to go to is:

    http://localhost/dvd/SearchSubmit.do?t=e&amp;#38;fid=&amp;%2338;ps=&amp;%2338;p=2

However, if I serve it as &quot;text/html&quot;, the URI is properly interpreted:

    http://localhost/dvd/SearchSubmit.do?t=e&amp;fid=&amp;ps=&amp;p=2

If I try to build the URL using only ampersands, and not &amp;amp;, then if served as &quot;application/xhtml+xml&quot;, Safari complains about the markup.

Firefox behaves correctly on the exact same page. Top of the page is served with:

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35288</commentid>
    <comment_count>1</comment_count>
      <attachid>12410</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-12 20:49:52 -0800</bug_when>
    <thetext>Created attachment 12410
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35289</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-12 21:09:51 -0800</bug_when>
    <thetext>When I try to load Attachment 12410 in a locally-built debug build of WebKit r18818 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8L127), I don&apos;t see the problems you describe below.

Can you attach a test case that reproduces the bug, or does Attachment 12410 reproduce this for you?

Do you have any Haxies or InputManagers installed with Safari?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35290</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-12 21:12:09 -0800</bug_when>
    <thetext>Confirmed in shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8L127).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35291</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-12 21:15:12 -0800</bug_when>
    <thetext>This issue has been fixed in WebKit ToT (tip of tree).  You can try out a WebKit nightly build (download the DMG, mount it, then double-click on the WebKit icon) to verify that this is fixed:

http://nightly.webkit.org/

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35292</commentid>
    <comment_count>5</comment_count>
    <who name="Rick Mann">rmann</who>
    <bug_when>2007-01-12 22:14:11 -0800</bug_when>
    <thetext>Yep, appears to work correctly in r18821. Thank you! (By the way, when does an update go out to everyone?)

For the record, I have no Haxies nor InputManagers installed. The attached test case DOES reproduce the problem in 419.3.

I was not sure what your comment (#3) meant: did you mean that you experienced the bug with it, or did you mean that you cannot reproduce it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35236</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-13 03:24:26 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Yep, appears to work correctly in r18821. Thank you! (By the way, when does an
&gt; update go out to everyone?)

See Bug 12199 Comment #3.

&gt; I was not sure what your comment (#3) meant: did you mean that you experienced
&gt; the bug with it, or did you mean that you cannot reproduce it?

Comment #3 in this bug meant that I was able to reproduce the bug using shipping Safari.

Sorry for any confusion!

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12410</attachid>
            <date>2007-01-12 20:49:52 -0800</date>
            <delta_ts>2007-01-12 20:49:52 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>bug-12237-test.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>316</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
ICAgICAgICAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtc3RyaWN0LmR0
ZCI+CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIj4KPGhlYWQ+PHRp
dGxlPjwvdGl0bGU+PC9oZWFkPgo8Ym9keT4KPGEgaHJlZj0iaHR0cDovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9MTIyMzcmYW1wO2N0eXBlPXhtbCZhbXA7Zm9vPWJhciI+QnVnIDEy
MjM3IGFzIFhNTDwvYT4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>