Volker Nebelung: getElementsByTagName im findet INPUT-Tags nicht zuverlässig

Beitrag lesen

Hallo Leute,

Aloha 'oe,

Wenn ich z.B. die Startseite von Google komplett in das Fenster kopiere geht es, wenn ich nur "[]Seiten aus Deutschland" reinkopiere geht es auch, wenn ich aber  "[]Seiten aus Deutschland" mehrmals hintereinander einfüge, findet getElementsByTagName die INPUT-Tags nicht.

Hat jemand einen Tipp, voran das liegt? Betrifft es auch andere Tags?

Ist dir klar, dass http://de.selfhtml.org/javascript/objekte/document.htm#get_elements_by_tag_name@title=getElementsByTagName ein Array liefert? Greifst du mit Schlüssel auf die Werte zu?

Ansonsten poste relevanten Code zur Begutachtung.

Gruß, Volker

--
„I conclude that there are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies."
- Tony Hoare