Methods and systems for JavaScript parsing
First Claim
1. A method of parsing a script within an HTML page, the method comprising:
- receiving a script object, wherein the script object includes text;
parsing the text of the script object for tokens without updating a state machine for every byte processed;
comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs);
parsing before and after the determined locations until complete URLs are constructed;
forwarding the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and
sending object retrieval requests to websites associated with the valid complete URLs.
5 Assignments
0 Petitions
Accused Products
Abstract
The present invention relates to systems, apparatus, and methods of parsing a script within an HTML page. The method includes receiving a script object, where the script object includes text. The method further includes parsing the text of the script object for tokens and comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs). The method includes parsing before and after the determined locations until complete URLs are constructed, and forwarding the complete URLs to a detector. The detector then determines whether the complete URLs are valid. The method then sends object retrieval requests to websites associated with the valid complete URLs.
8 Citations
20 Claims
-
1. A method of parsing a script within an HTML page, the method comprising:
-
receiving a script object, wherein the script object includes text; parsing the text of the script object for tokens without updating a state machine for every byte processed; comparing the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs); parsing before and after the determined locations until complete URLs are constructed; forwarding the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and sending object retrieval requests to websites associated with the valid complete URLs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 19, 20)
-
-
12. A system for accelerating network communications, the system comprising:
-
a client system including a proxy client configured to intercept a content request generated by the client, and to transmit the request; a proxy server coupled with the client system via the proxy client, the proxy server including a script parser configured to receive a script object, wherein the script object includes text, to parse the text of the script object for tokens without updating a state machine for every byte processed by the script parser, to compare the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential universal resource locators (URLs), and to parse before and after the determined locations until complete URLs are constructed, wherein the proxy server further includes a detector which is configured to receive the complete URLs to determine whether the complete URLs are valid; and a content server coupled with the proxy server, the content server configured to receive object retrieval requests associated with the valid complete URLs from the proxy server, and transmit objects associated with the valid completed URLs to the proxy server. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A non-transitory machine-readable medium for parsing script files including sets of instructions stored thereon which, when executed by a machine, cause the machine to:
-
receive a script object, wherein the script object includes text; parse the text of the script object for tokens without updating a state machine for each byte processed; compare the parsed tokens with a valid tokens list to determine locations within the text of the script object that include potential URLs; parse before and after the determined locations until complete URLs are constructed; forward the complete URLs to a detector, wherein the detector determines whether the complete URLs are valid; and send object retrieval requests to websites associated with the valid complete URLs.
-
Specification