Opened 12 years ago

Closed 12 years ago

#1303 closed defect (fixed)

add getElementsByClassName()

Reported by: ray Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords:


...because it's practical and one can do nice things with it that would be hard otherwise

Change History (1)

comment:1 Changed 12 years ago by ray

  • Resolution set to fixed
  • Status changed from new to closed

rev [1080]: implemented as
Xinha.getElementsByClassName = function(el,className)
Xinha.Dialog.prototype.getElementsByClassName = function(className)
as a wrapper for the native implementation where available (all but IE), but returns Array instead HTMLCollection, which is handier in most cases

Note: See TracTickets for help on using tickets.