Re: [whatwg] getElementsByClassName case sensitivity

2009-01-14 Thread Stewart Brodie
Anne van Kesteren ann...@opera.com wrote:

 On Tue, 13 Jan 2009 11:17:08 +0100, Anne van Kesteren ann...@opera.com
 wrote:
  Since my initial e-mail did not seem to have done it, could you please
  take a look at the source code of the respective test and tell me if you
  see a problem there?
 
 http://tc.labs.opera.com/apis/getElementsByClassName/014.htm
 
  To be perfectly clear, there is no discrepancy between CSS handling and
  the getElementsByClassName method and the test is testing that there is
  not.
 
 Wow, epic fail. I missed it should match two elements. The test is indeed
 out of date.
 
 * updates the test now.

Excellent - thanks!


-- 
Stewart Brodie
Software Engineer
ANT Software Limited


Re: [whatwg] getElementsByClassName case sensitivity

2009-01-13 Thread Stewart Brodie
Anne van Kesteren ann...@opera.com wrote:

 On Mon, 12 Jan 2009 15:25:33 +0100, Stewart Brodie
 stewart.bro...@antplc.com wrote:
  Ian Hickson i...@hixie.ch wrote (on 25 July 2008):
  I've made [getElementsByClassName] consistent with how classes work in
  CSS
  (case-insensitive for quirks and case-sensitive otherwise).
 
  I was looking for some tests for this API and found some from Opera
  (found
  at http://tc.labs.opera.com/apis/getElementsByClassName/) but given the
  dates on them predate the latest spec changes (which causes some to fail
  now), I was wondering if up to date versions are now kept somewhere else
  instead?
 
 The tests already take this change into account. It was agreed upon way
 earlier prolly over IRC or so, but the specification hadn't catched up
 with reality yet. I'm not sure what other tests you might believe to be
 out of date (and why) and would be interested in knowing being the author
 and all :-)

Specifically: test 14 - tests for case-sensitivity in a document that is in
quirks mode.

Are you saying that this change has now been reversed and the comparisons
are always case-sensitive, thus reintroducing the discrepancy between CSS's
handling of classes and this new method?


-- 
Stewart Brodie
Software Engineer
ANT Software Limited


Re: [whatwg] getElementsByClassName case sensitivity

2009-01-13 Thread Anne van Kesteren
On Tue, 13 Jan 2009 11:08:56 +0100, Stewart Brodie  
stewart.bro...@antplc.com wrote:
Specifically: test 14 - tests for case-sensitivity in a document that is  
in quirks mode.


Are you saying that this change has now been reversed and the comparisons
are always case-sensitive, thus reintroducing the discrepancy between  
CSS's handling of classes and this new method?


Since my initial e-mail did not seem to have done it, could you please  
take a look at the source code of the respective test and tell me if you  
see a problem there?


  http://tc.labs.opera.com/apis/getElementsByClassName/014.htm

To be perfectly clear, there is no discrepancy between CSS handling and  
the getElementsByClassName method and the test is testing that there is  
not.



--
Anne van Kesteren
http://annevankesteren.nl/
http://www.opera.com/


Re: [whatwg] getElementsByClassName case sensitivity

2009-01-13 Thread Anne van Kesteren
On Tue, 13 Jan 2009 11:17:08 +0100, Anne van Kesteren ann...@opera.com  
wrote:
Since my initial e-mail did not seem to have done it, could you please  
take a look at the source code of the respective test and tell me if you  
see a problem there?


   http://tc.labs.opera.com/apis/getElementsByClassName/014.htm

To be perfectly clear, there is no discrepancy between CSS handling and  
the getElementsByClassName method and the test is testing that there is  
not.


Wow, epic fail. I missed it should match two elements. The test is indeed  
out of date.


* updates the test now.


--
Anne van Kesteren
http://annevankesteren.nl/
http://www.opera.com/


Re: [whatwg] getElementsByClassName case sensitivity

2009-01-12 Thread Stewart Brodie
Ian Hickson i...@hixie.ch wrote (on 25 July 2008):

 I've made [getElementsByClassName] consistent with how classes work in CSS
 (case-insensitive for quirks and case-sensitive otherwise).

I was looking for some tests for this API and found some from Opera (found
at http://tc.labs.opera.com/apis/getElementsByClassName/) but given the
dates on them predate the latest spec changes (which causes some to fail
now), I was wondering if up to date versions are now kept somewhere else
instead?

-- 
Stewart Brodie
Software Engineer
ANT Software Limited