Hello everyone,
Experimenting with phoneyc today I came across two sites
twitter.com and
sina.com.cn that gave following errors.
Errors with
www.twitter.com:
1. Error executing:
//<![CDATA[
if (window.top !== window.self) {document.write = "";
window.top.location = window.self.location; setTimeout(function(){document.body.innerHTML='';},1);window.self.onload=function(evt){document.body.innerHTML='';};}
//]]>
TypeError: window.top has no properties(JSError)
2. Traceback (most recent call last):
File "/home/neha/phoneyc/DOM/DOMObject.py", line 77, in __setattr__
self.__parser.html = self.__parser.html[:self.begin] + val + self.__parser.html[self.end:]
AttributeError: 'NoneType' object has no attribute 'html'
Errors with
www.sina.com.cn:
1. Traceback (most recent call last):
File "/home/neha/phoneyc/DOM/PageParser.py", line 188, in end_script
self.__last_try(traceback.format_exc())
File "/home/neha/phoneyc/DOM/PageParser.py", line 182, in end_script
self.__dict__['__window'].__dict__['__cx'].execute(catch_script) # execute script here
File "<JavaScript>", line 296, in SyntaxError: unterminated string literal
File "<JavaScript>", line 296, in invalid property id
JSError: Error executing JavaScript.
2. Another error: list index out of range
File "/home/neha/phoneyc/DOM/PageParser.py", line 193, in end_script
if isinstance(self.__dict__['__window'].__dict__['__sl'][-1].src, str):
IndexError: list index out of range
At present I do not have any idea how to fix these errors. I would be anyhow looking into it and try to figure out, with my limited knowledge, the fix for these. I appreciate suggestions or guidance in advance.
--
njain (IRC nick)