DeLimit number of predicates in Xpath
Friday, 30. May 2008, 19:36:00
Maximum number of predicates in Opera's XPath engine seems to be capped at 100. This change raises the limit 10 times.
In this piece of code below (original code), limit is set to 0x04 which is 1024 decimal. I don't really know how 1024 translates to 100 predicates but there must be some system in it. I didn't go deep into this.
Replace
with
This change wasn't really tested. I just can see that TYPE_ERR error is gone but does it really work?
If it works then all links will have green background in predicate testcase. And it appears green for me so...
In this piece of code below (original code), limit is set to 0x04 which is 1024 decimal. I don't really know how 1024 translates to 100 predicates but there must be some system in it. I didn't go deep into this.
Replace
8B F8 8B 07 3B C1 BB 00 04 00 00
with
8B F8 8B 07 3B C1 BB 00 28 00 00
This change wasn't really tested. I just can see that TYPE_ERR error is gone but does it really work?
If it works then all links will have green background in predicate testcase. And it appears green for me so...















Phred # 30. May 2008, 20:36
Now when can we expect the extension api to be added or will you upgrade opera to js version 1.8 first?
rseiler # 1. June 2008, 15:07
http://my.opera.com/community/forums/topic.dml?id=222377
I expect it by the end of the day. Thanks!
I'm actually kind of serious. Is it plausible? If so, I'd even give you until tomorrow.