<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thomas,<br>
<br>
Thanks for your info. Looks like I need to change my SOP.<br>
<br>
And you are right, I should find a different list for these questions.
I am using a python web app, but these questions are generic enough to
go somewhere else. Thanks for the kind word and your advice.<br>
<pre class="moz-signature" cols="72">--------------------------------------
Randy Syring
RCS Computers & Web Solutions
502-644-4776
<a class="moz-txt-link-freetext" href="http://www.rcs-comp.com">http://www.rcs-comp.com</a>
"Whether, then, you eat or drink or
whatever you do, do all to the glory
of God." 1 Cor 10:31
</pre>
<br>
<br>
Thomas Broyer wrote:
<blockquote
cite="mid:a9699fd20904280101p4862e9d3jfa792ccb2f85862a@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Apr 27, 2009 at 11:19 PM, Randy Syring <a class="moz-txt-link-rfc2396E" href="mailto:randy@rcs-comp.com"><randy@rcs-comp.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">For the last four years, I have always used an empty action attribute on my
form to make it post back to the current URL. I almost always validate my
HTML and this has never come up as a violation. Furthermore, I have read
various people on the web advocating this practice.
Recently, however, I went to use Google Chrome to look at some of my web
apps and I noticed that none of my forms work. In use a <base> tag and
empty form attributes. Whenever I submit a form in Chrome, it gets posted
to the root URL (i.e. what I have in my <base> tag). Am I violating the
spec or is this something Google Chrome got wrong?
</pre>
</blockquote>
<pre wrap=""><!---->
You are violating the spec (or, actually, this a bit of a blurry thing
in the spec re. a "same document reference").
</pre>
<blockquote type="cite">
<pre wrap=""> What I have works in IE, FF, and Opera.
</pre>
</blockquote>
<pre wrap=""><!---->
Yes, because they're violating the spec too. HTML5 defines the form
submission to violate the RFC 3986 to make it work like IE, FF and
Opera:
<a class="moz-txt-link-freetext" href="http://www.w3.org/TR/html5/forms.html#form-submission-algorithm">http://www.w3.org/TR/html5/forms.html#form-submission-algorithm</a> (step 9)
The comments there (an HTML comment, look at the source of the page) says:
<!-- Don't ask me why. But that's what IE does. It even treats
action="" differently from action=" " or action="#" (the latter
two resolve to the base URL, the first one resolves to the doc
URL). And other browsers concur. It is even required, see e.g.
<a class="moz-txt-link-freetext" href="http://bugs.webkit.org/show_bug.cgi?id=7763">http://bugs.webkit.org/show_bug.cgi?id=7763</a>
<a class="moz-txt-link-freetext" href="https://bugzilla.mozilla.org/show_bug.cgi?id=297761">https://bugzilla.mozilla.org/show_bug.cgi?id=297761</a>
-->
(I'm not sure web-sig is the appropriate list for these questions, as
they're unrelated to Python; maybe <a class="moz-txt-link-freetext" href="http://www.whatwg.org/mailing-list">http://www.whatwg.org/mailing-list</a>
or <a class="moz-txt-link-freetext" href="http://forums.whatwg.org/">http://forums.whatwg.org/</a> )
</pre>
</blockquote>
</body>
</html>