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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>177</bug_id>
          
          <creation_ts>2003-03-12 12:18:18 +0000</creation_ts>
          <short_desc>Textarea should POST, not GET</short_desc>
          <delta_ts>2008-03-12 16:14:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>text area</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</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="Bj">bjoern</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>maxxyme</cc>
    
    <cc>ylafon</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>414</commentid>
    <comment_count>0</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2003-03-12 12:18:18 +0000</bug_when>
    <thetext>The text area form uses GET for submission. This causes the form to fail on 
various browsers since they limit the length of URIs to a fixed value which 
style sheets often exceed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2440</commentid>
    <comment_count>1</comment_count>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-04 08:25:15 +0000</bug_when>
    <thetext>The beauty of the GET HTTP request method is that we can construct test cases
that are URIs. I refuse to abandon this utility.

Does using the POST method violate Web architecture or the HTTP 1.1
specification (&lt;urn:ietf:rfc:2616&gt;)? After all, testing for CSS validity of a
string is a safe operation. Time to slog through the Web-architecture
specification...

Both methods can be options of the validator service. How to arrange this dual
offering in a usable manner is yet another discussion, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5414</commentid>
    <comment_count>2</comment_count>
    <who name="Jordan Moore">jrdnmoore</who>
    <bug_when>2005-08-16 22:19:07 +0000</bug_when>
    <thetext>You could use JavaScript to insert a set of radio buttons that sets the method
of the form (POST or GET), and then use a &lt;noscript&gt; element to display a link
to the POST version for non-JS users.

If you don&apos;t like &lt;noscript&gt;s, you could simply use the DOM to remove the
paragraph with the link to the POST version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8296</commentid>
    <comment_count>3</comment_count>
    <who name="Jesse Skinner">jesse</who>
    <bug_when>2006-02-16 19:04:37 +0000</bug_when>
    <thetext>Why not allow the values to be sent with either GET or POST, and change the
front-end textarea to use POST? Then, the test cases will still work as URLs.

To construct the test case URLs, you could just save the form locally, change
the &apos;method&apos; from POST to GET, and change the &apos;target&apos; to point at the live server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15893</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-07-20 05:15:35 +0000</bug_when>
    <thetext>An argument mentioned by Jukka on the mailing-list, in favor of POST:
[[
Quoting the HTML 4.01 spec:

&quot;Note. The &quot;get&quot; method restricts form data set values to ASCII characters. Only the &quot;post&quot; method (with enctype=&quot;multipart/form-data&quot;) is specified to cover the entire [ISO10646] character set.&quot;
  http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1
]] http://lists.w3.org/Archives/Public/www-validator-css/2007Jul/0020.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15894</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-07-20 06:17:23 +0000</bug_when>
    <thetext>patched the validator to allow handling of direct input via POST.
http://dev.w3.org/cvsweb/2002/css-validator/org/w3c/css/servlet/CssValidator.java.diff?r1=1.31&amp;r2=1.28&amp;f=h

Yves, could you give it a glance?
(we need to install tagsoup and java 1.6 on qa-dev, our testing ground is non functional until we do).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18093</commentid>
    <comment_count>6</comment_count>
    <who name="Maxx">maxxyme</who>
    <bug_when>2007-12-14 10:28:10 +0000</bug_when>
    <thetext>Could the above fix be deployed in production?
Thanks.

I&apos;m currently stuck with this CSS validator, because testing CSS files of an internal enterprise application (thus unavailable on the internet) and my stylesheets are a little bigger than the HTTP max URL length.
I have to send each of my CSS&apos;s through the file input to validate them one by one
instead of just copy/paste the content of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18162</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-12-28 03:18:17 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Could the above fix be deployed in production?

We&apos;re waiting for translations to be completed before we can put the latest validator in production.
http://qa-dev.w3.org:8001/css-validator/translations.html
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19421</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-03-12 16:14:21 +0000</bug_when>
    <thetext>in production now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>