Re: Parameter names for getElementsByTagName in DOM L3

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 UTC