Somehow font elements are being added everywhere in my page, with size
set to 4. Maybe I'm just tired but I have no idea what's going on, even
weirder considering the page is XHTML 1.0 strict served with the proper
MIME type... heres some code:
var divs = document.getEle mentsByTagName( "div");
for (var i=0; i<divs.length; i++) {
if (divs[i].className == "cwindow") {
windows.push( [ divs[i].title, document.body.r emoveChild(divs[i])]
);
i--;
}
}
for (var i=0; i<windows.lengt h; i++) {
bodytext += "<div class='window_b order'><div class='window_w rap'><div
class='window_h eader'><div class='window_h eader_content'> ";
//Title
bodytext += windows[i][0];
bodytext += "</div></div><div class='window_b ody_border'><di v
class='window_b ody' style='backgrou nd-position:" +(
Math.round(Math .random()*800) )+ "px " +( Math.round(Math .random()*800)
)+ "px;'>";
//Body
bodytext += windows[i][1].innerHTML;
bodytext += "</div></div></div></div>";
}
Wherever I add the title and body from 'windows' it puts it inside a
font element with size of 4. Text is huge. It also adds it in other
places in the middle of a string asigned with innerHTML. I don't get it
and I'm giving up for sleep now, please point out my simple stupid
mistake.
HS