W3C home > Mailing lists > Public > www-dom-ts@w3.org > October 2001

Re: Parameter names for getElementsByTagName in DOM L3

From: Fred L. Drake, Jr. <fdrake@acm.org>
Date: Thu, 25 Oct 2001 11:57:20 -0400
Message-ID: <15320.13920.371024.61485@grendel.zope.com>
To: "Curt Arnold" <carnold@houston.rr.com>
Cc: <www-dom@w3.org>, <www-dom-ts@w3.org>

Curt Arnold writes:
 > Document.getElementsByTagName's parameter is named "tagname",
 > Element.getElementsByTagName's parameter is named "name".  Doesn't
 > matter in the big scheme of things but it does complicate
 > production of the test markup language.  If possible, could
 > parameter "name" be changed to "tagname" in DOM L3 Core.

  This is also something which matters for languages in which
parameters may be identifed by name at the call site:

    o = get_document_or_element(...)
    o.getElementsByTagName(tagname="abstract")

While most users will use the positional syntax, this would typically
be expected to work in Python.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation
Received on Thursday, 25 October 2001 12:05:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:45 GMT