<?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>10344</bug_id>
          
          <creation_ts>2010-08-10 22:48:41 +0000</creation_ts>
          <short_desc>col.span, colgroup.span, textarea.cols, textarea.rows should not be limited to only non-negative numbers greater than zero</short_desc>
          <delta_ts>2010-10-04 14:46:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10345</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-col-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37343</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-10 22:48:41 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#the-col-element

Comment:
col.span and colgroup.span should not be limited to only non-negative numbers
greater than zero.  Chrome, Firefox, Opera, and Safari all agree that this
alerts &quot;false&quot; (didn&apos;t test in IE because it doesn&apos;t support data URLs
properly, too lazy): data:text/html,&lt;!doctype html&gt;&lt;script&gt;var el =
document.createElement(&quot;col&quot;); var thrown = false; try { el.span = 0; }
catch(e) { thrown = true; } alert(thrown);&lt;/script&gt;

Posted from: 68.175.61.233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37344</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-08-10 22:51:22 +0000</bug_when>
    <thetext>Same deal for textarea.cols, textarea.rows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38873</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-10 23:48:00 +0000</bug_when>
    <thetext>Looks like they are limited, they just don&apos;t throw (that is, the new value is ignored). Also looks like some other attributes are affected here.

I guess I&apos;ll just go down all the attributes marked as limited to only non-negative numbers greater than zero and see what happens in browsers I have access to. (If anyone has access to IE, it&apos;d be great to have info on what IE does.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39639</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-28 01:08:09 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale:

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/648
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/649

Looks like there&apos;s really not much interop in this space. What the spec says now, especially with recent changes caused by other bugs, seems like a good compromise and seems at least somewhat sane (which some of the browsers with some of the attributes really aren&apos;t). So I&apos;ve left it as is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39707</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-09-28 10:07:59 +0000</bug_when>
    <thetext>Gecko treats col.span as a long, but clamped to the range [1, 1000], with default 1 (which is also used for out-of-range values).  WebKit seems to treat it exactly as any long.  Opera treats it as an unsigned long, which means it clamps negative values to 0 (it does this for all unsigned longs, separate bug).

Gecko treats textarea.rows as a long, with setting to nonpositive values treated as setting to 0.  WebKit seems to treat it as an unsigned long, but setting to nonpositive values sets to the default value (2).  Opera seems to just treat it as a long.

Okay, I&apos;ll grant that we have much less interop than I thought.  Nobody throws, but nobody does anything that&apos;s sensible or consistent with how other values work, and browsers are often refusing to set to nonpositive values.  So I guess the spec is as good as anything here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39708</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-09-28 10:12:56 +0000</bug_when>
    <thetext>Actually, this is relevant to bug 10345.  DOM 2 HTML says these four attributes are signed, and you&apos;ve changed them to unsigned, which you said in bug 10345 was unintentional.  So is this change to the IDLs intentional or not?  The requirement to throw on nonpositive values doesn&apos;t contradict any previous spec, but the IDL change does.  (The IDL change does seem sensible here, just want to double-check.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39765</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-28 17:54:47 +0000</bug_when>
    <thetext>I&apos;ll look at the IDL part of this as part of that bug. This bug is just about the way it is reflected after any IDL decision.

*** This bug has been marked as a duplicate of bug 10345 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40006</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-09-29 19:46:10 +0000</bug_when>
    <thetext>Okay, although obviously if it reverts to long, you can&apos;t say it&apos;s limited only to positive values.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>