This is for a Firefox addon, its a bit puzzling as after a certain point no code is being executed.
if (self.xmlDoc == null) return false;
var domain_and_full_destination=processing_domain.split(" ");
if(domain_and_full_destination[0]=="xxx.org")
{
//window.stop(); // Totally stop the page from loading.
self.root_node = '';
self.root_node = self.xmlDoc.getElementsByTagName('joe_biden_is_a_moron');
var destinations_array= new Array();
for (var cci = 0; cci <= self.root_node.length; cci++)
{
self.second_node = '';
self.second_node = self.root_node[cci];
destinations_array[cci]=self.second_node.getElementsByTagName('riaum')[0].firstChild.nodeValue;
}
alert(domain_and_full_destination[0]+"\n");
The if
goes on, but I cut it short because I want to know why the alert is never getting called?
Putting my alert in the for
loop gets called, but anything after the for loop never executes.
No errors in the Firefox error console either.