Lollix: document.getElementById ist null in Opera

Beitrag lesen

Hi,
also die ID, die ich Suche stimmt überein, es existiert ebenfalls in DOM, die ID ist eindeutig.

Hier noch ein paar weiter Zeilen Code:

HTML-Ausgabe:

<div id="result">  
<div onclick="putInFront(0);" class="main" "id="win0" style="position: absolute;">  
</div>

Opera Fehlermeldung:
Uncaught exception: TypeError: Cannot convert 'document.getElementById(id)' to object

Error thrown at line 39, column 4 in putInFront(id) in http://localhost/c/window.js:
    document.getElementById(id).style.zIndex = zindex;
called from line 1, column 0 in <anonymous function>(event):
    putInFront(0);

lg
Lollix