Re: [Web-SIG] empty action attribute with forms in Google Chrome

2009-04-28 Thread Randy Syring

Thomas,

Thanks for your info.  Looks like I need to change my SOP.

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.


--
Randy Syring
RCS Computers & Web Solutions
502-644-4776
http://www.rcs-comp.com

"Whether, then, you eat or drink or 
whatever you do, do all to the glory

of God." 1 Cor 10:31



Thomas Broyer wrote:

On Mon, Apr 27, 2009 at 11:19 PM, Randy Syring  wrote:
  

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  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  tag).  Am I violating the
spec or is this something Google Chrome got wrong?



You are violating the spec (or, actually, this a bit of a blurry thing
in the spec re. a "same document reference").

  

 What I have works in IE, FF, and Opera.



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:
http://www.w3.org/TR/html5/forms.html#form-submission-algorithm (step 9)
The comments there (an HTML comment, look at the source of the page) says:


(I'm not sure web-sig is the appropriate list for these questions, as
they're unrelated to Python; maybe http://www.whatwg.org/mailing-list
or http://forums.whatwg.org/ )

  
___
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com


Re: [Web-SIG] empty action attribute with forms in Google Chrome

2009-04-28 Thread Thomas Broyer
On Mon, Apr 27, 2009 at 11:19 PM, Randy Syring  wrote:
> 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  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  tag).  Am I violating the
> spec or is this something Google Chrome got wrong?

You are violating the spec (or, actually, this a bit of a blurry thing
in the spec re. a "same document reference").

> What I have works in IE, FF, and Opera.

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:
http://www.w3.org/TR/html5/forms.html#form-submission-algorithm (step 9)
The comments there (an HTML comment, look at the source of the page) says:


(I'm not sure web-sig is the appropriate list for these questions, as
they're unrelated to Python; maybe http://www.whatwg.org/mailing-list
or http://forums.whatwg.org/ )

-- 
Thomas Broyer
___
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com