Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7895

Re: Changing letters in boxes

From Matt McDonald <matt@fortybelow.ca>
Newsgroups comp.lang.javascript
Subject Re: Changing letters in boxes
Date 2011-10-31 21:29 -0600
Organization A noiseless patient Spider
Message-ID <j8np25$n0u$1@dont-email.me> (permalink)
References <1cb16076-87c8-4bc6-8007-1efddfb7530b@s10g2000yqa.googlegroups.com> <j8ji7m$fj8$1@dont-email.me> <3024323.SPkdTlGXAF@PointedEars.de> <j8kne2$1e3$1@dont-email.me> <1784154.EMZun36R47@PointedEars.de>

Show all headers | View raw


On 10/30/2011 7:19 PM, Thomas 'PointedEars' Lahn wrote:
> One problem which what you dubbed "DOM Table Cell API" (there really is no
> official name for that part of the W3C DOM Level 2 HTML Specification) is
> that the W3C DOM API Specification and the MSHTML DOM API definition
> disagree (again, cf. HTMLSelectElement::add() [1]) with regard to the
> meaning of the method's arguments and its return value:

Right. That was a silly typo ("Table Cell" over "Table"). I've amended 
the title along with any reference to any "API" short of the DOM itself.

> Both support the value -1 to append a new cell; but while the standards-
> compliant implementation requires the number of existing cells to be passed
> for an alternative of that (tr.cells.length), MSHTML is at least documented
> to require tr.cells.length - 1.  Also, while the standards-compliant
> implementation is supposed to throw DOMException INDEX_SIZE_ERR on error,
> MSHTML is at least documented to throw no exception at all then, but to
> return "null" instead (which, for the ECMAScript binding, is the `null'
> value of the JScript implementation of the Null type). [2]

Noted in both cases. Thanks.

> The same problem exists with
> HTMLTableElement/HTMLTableSectionElement::insertRow(). [3]
>
> Those differences suggest the possibility of other differences between
> standards-compliant and other implementations than the MSHTML DOM in this
> area.  Therefore, I have intentionally used DOM Level 2+ Core methods in my
> example – for which I am not aware of such quirks – and made no mention of
> that "DOM Table Cell API".

Ah, I see. Still, it's a powerful set of methods/properties that tend to 
get overlooked.

Regarding your double colon notation (::), am I to infer those 
properties/methods are static? I've been unable to locate anything 
utilizing that notation regarding the DOM beyond your posts.

Finally, I've spent most of today cleaning up the article and making it 
easier to parse through. I'd like to thank you for reviewing it and 
being very thorough (as always). Will you mind if I attribute you in the 
footnotes?

PS: Your suggestion previously to stick to table cell modification 
instead of a complete overhaul of the row led me to fix a reflow bug in 
IE:Mac. Thanks a bunch. :)

-- 
Matt McDonald: Web/Flash Developer; Edmonton, Alberta, Canada

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Changing letters in boxes fulio pen <fuliopen@yahoo.com> - 2011-10-30 05:26 -0700
  Re: Changing letters in boxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-10-30 15:08 +0200
    Re: Changing letters in boxes fulio pen <fuliopen@yahoo.com> - 2011-10-30 07:14 -0700
    Re: Changing letters in boxes fulio pen <fuliopen@yahoo.com> - 2011-10-30 10:22 -0700
      Re: Changing letters in boxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-10-30 20:14 +0200
        Re: Changing letters in boxes fulio pen <fuliopen@yahoo.com> - 2011-10-30 12:27 -0700
    Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-30 18:58 +0100
      Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-30 19:07 +0100
      Re: Changing letters in boxes Andrew Poulos <ap_prog@hotmail.com> - 2011-10-31 06:15 +1100
        Re: Changing letters in boxes Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-11-01 17:17 +0100
          Re: Changing letters in boxes Andrew Poulos <ap_prog@hotmail.com> - 2011-11-02 07:10 +1100
            Re: Changing letters in boxes Andreas Bergmaier <andber93@web.de> - 2011-11-01 23:37 +0100
              Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-02 00:20 +0100
        Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-01 18:01 +0100
      Re: Changing letters in boxes Matt McDonald <matt@fortybelow.ca> - 2011-10-30 17:42 -0600
        Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-31 02:19 +0100
          Re: Changing letters in boxes Matt McDonald <matt@fortybelow.ca> - 2011-10-31 21:29 -0600
            Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-01 11:52 +0100
      Re: Changing letters in boxes RobG <rgqld@iinet.net.au> - 2011-10-30 19:33 -0700
        Re: Changing letters in boxes "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-10-31 08:37 +0200
        Re: Changing letters in boxes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-31 11:50 +0100
  Re: Changing letters in boxes faqir <faqir@faqir.com> - 2011-11-03 23:20 +0200

csiph-web