CN111859216A - Method for dynamically adapting different IE kernels to browser client - Google Patents
Method for dynamically adapting different IE kernels to browser client Download PDFInfo
- Publication number
- CN111859216A CN111859216A CN202010617717.6A CN202010617717A CN111859216A CN 111859216 A CN111859216 A CN 111859216A CN 202010617717 A CN202010617717 A CN 202010617717A CN 111859216 A CN111859216 A CN 111859216A
- Authority
- CN
- China
- Prior art keywords
- kernel
- different
- meta
- browser
- kernels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000009877 rendering Methods 0.000 claims abstract description 25
- 230000006978 adaptation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method for dynamically adapting different IE kernels by a browser client. Each IE kernel rendering process of the browser may dynamically specify different IE kernel versions for different web site URLs through a white list. And before navigation, the rendering process judges whether the current URL needs to use the specified IE kernel version by comparing the white list. When the browser process downloads the server-side webpage data, if the current webpage needs to specify the IE kernel version, adding the Meta-information tag Meta corresponding to the IE kernel version in the document header tag head of the current webpage data. After downloading the network data, the IE kernel rendering process selects a corresponding compatible kernel version for rendering according to the first Meta-information tag Meta in the page, so that the aim of flexibly designating different IE kernel versions is fulfilled. The method and the device are used for the browser client to dynamically adapt to different IE kernels.
Description
The technical field is as follows:
the invention relates to a method for dynamically adapting different IE kernels by a browser client.
Background art:
the browser kernel is responsible for interpreting the web page syntax (e.g., hypertext markup language HTML, running script JavaScript) and rendering the web page. The so-called browser kernel is an engine that downloads, parses, executes, and renders a page, and determines how the browser displays the content of the web page and the format information of the page.
At present, due to the complex structure of the internet in China, a large number of websites or services developed by adopting different specifications based on different versions of browsers IE exist in a client, and the client can only normally operate under a browser adopting a specific browser IE kernel. Therefore, when a user uses the browser client, various flexible kernel switching requirements need to be met according to different pages.
In summary, one technical problem to be solved urgently by those skilled in the art is how to solve the problems of compatibility and adaptability of a browser client in an IE kernel of a browser, so that a user can obtain better webpage browsing experience.
The invention content is as follows:
the invention aims to provide a method for dynamically adapting different IE kernels by a browser client.
The above purpose is realized by the following technical scheme:
a method for dynamically adapting different IE kernels at a browser client side is provided, wherein each IE kernel rendering process of a browser can dynamically assign different IE kernel versions for different URL through a white list. And before navigation, the rendering process judges whether the current URL needs to use the specified IE kernel version by comparing the white list. When the browser process downloads the server-side webpage data, if the current webpage needs to specify the IE kernel version, adding the Meta-information tag Meta corresponding to the IE kernel version in the document header tag head of the current webpage data. After downloading the network data, the IE kernel rendering process selects a corresponding compatible kernel version for rendering according to the first Meta-information tag Meta in the page, so that the aim of flexibly designating different IE kernel versions is fulfilled.
The method for dynamically adapting to different IE kernels at the browser client side judges and acquires the network download data of the current URL through intercepting the calling process of the Internet service wining.
According to the method for dynamically adapting different IE kernels by the browser client, if a target webpage needs to use the browser IE8 kernel, a Meta-information tag < Meta http-equiv = 'X-UA-Compatible' content = 'IE = 8' is added after a document header tag head of downloaded webpage data, and a current rendering process is informed to forcibly use the IE8 kernel for rendering for the current webpage.
Has the advantages that:
1. the invention achieves the purpose of flexibly appointing the page version by intercepting and modifying the server-side webpage data downloaded by the browser process and adding the Meta-information tag Meta corresponding to the browsing IE kernel version in the document head tag head of the existing webpage data.
The method and the device can accurately control the same rendering process to adapt to different IE kernels, and improve the flexibility of webpage adaptation.
Description of the drawings:
FIG. 1 is a flow chart of the product.
The specific implementation mode is as follows:
the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention.
Example 1:
a method for dynamically adapting different IE kernels of a browser client not only adopts a scheme of modifying the version of the positive kernel of the browser by using a registry, but also can flexibly assign multiple browser IE kernel versions in each IE kernel rendering process of the browser, and only needs to assign the positive kernel version to a website URL and add the positive kernel version to a white list. And before navigation, the rendering process judges whether the current URL needs to use the rendered appointed IE kernel or not by comparing the white list.
When the browser process downloads the server-side web page data, if the current web page needs to specify the browser IE kernel version, the Meta-information tag Meta corresponding to the browser IE version is added to the document header tag head of the current web page data, so that the aim of forcibly specifying the page IE kernel version is fulfilled.
After the browser IE kernel rendering process finishes downloading the network data, different compatible kernel versions can be selected according to a first Meta-information tag Meta tag in a page. Therefore, the browser rendering process is controlled to flexibly render according to the appointed IE kernel version.
Example 2:
the method for dynamically adapting to different IE kernels of the browser client described in embodiment 1 determines and acquires network download data of a current URL by intercepting a call process of internet service winet.
Example 3:
in the method for dynamically adapting to different IE kernels by a browser client described in embodiment 1, if a target web page needs to use a browser IE8 kernel, a meta-information tag < Metahttp-equiv = "X-UA-Compatible" content = "IE =8" is added after a document header tag head of downloaded web page data, and a current rendering process is notified to forcibly use an IE8 kernel for rendering a current web page.
Example 4:
the method for dynamically adapting to different IE kernels by a browser client described in embodiment 1 includes a website URL matching step of obtaining a website URL currently accessed by a browser process, performing accurate comparison or fuzzy matching with a stored white list, and determining whether the current website URL needs to designate a kernel.
And if the kernel needs to be specified, acquiring the corresponding version number character string stored in the white list.
And thirdly, returning the corresponding Meta information tag Meta character string for use according to the acquired version number information.
Example 5:
the method for dynamically adapting to different IE kernels in embodiment 1 inserts Meta information tag Meta information,
intercepting data of a document Type Content-Type returned by a webpage server as 'text/html' data when specified kernel information needs to be inserted.
And analyzing whether the intercepted webpage data contains a document head label head webpage element.
If the current data contains a head element of a document head label head, returning the obtained Meta information label Meta character string before inserting the head element of the document head label head.
Example 6:
in the method for dynamically adapting to different IE kernels by a browser client described in embodiment 1, the browser compares URL information of a URL (uniform resource locator) submitted by a user according to a stored white list, and determines whether a current page needs to be switched to a dedicated IE kernel version of the browser, and if the comparison is successful, it indicates that the current page needs to be adapted to the dedicated IE kernel version, and a rendering process injects different Meta information tag Meta elements into the current page, thereby achieving the purpose of setting different kernels.
Claims (3)
1. A method for dynamically adapting different IE kernels of a browser client is characterized in that each IE kernel rendering process of the browser can dynamically assign different IE kernel versions for different URL through a white list, the rendering process judges whether the current URL needs to use the assigned IE kernel version by comparing the white list before navigation, when the browser process downloads web page data of a server, if the current web page needs to assign the IE kernel version, a Meta-information tag Meta corresponding to the IE kernel version is added in a document header tag head of the current web page data, and after the IE kernel rendering process downloads the web page data, a corresponding compatible kernel version is selected for rendering according to a first Meta-information tag Meta in the page, so that the purpose of flexibly assigning different IE kernel versions is achieved.
2. The method as claimed in claim 1, wherein the method for dynamically adapting to different IE kernels at the browser client side comprises the steps of judging and acquiring the network download data of the current URL by intercepting the calling process of the Internet service winet.
3. The method for dynamically adapting to different IE kernels by the browser client as claimed in claim 1, wherein if the target web page needs to use the browser IE8 kernel, a Meta-information tag < Meta http-equiv = "X-UA-Compatible" content = "IE =8" is added after a document header tag head of the downloaded web page data, and the current rendering process is notified to forcibly use the IE8 kernel for rendering for the current web page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010617717.6A CN111859216A (en) | 2020-07-01 | 2020-07-01 | Method for dynamically adapting different IE kernels to browser client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010617717.6A CN111859216A (en) | 2020-07-01 | 2020-07-01 | Method for dynamically adapting different IE kernels to browser client |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111859216A true CN111859216A (en) | 2020-10-30 |
Family
ID=72988857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010617717.6A Pending CN111859216A (en) | 2020-07-01 | 2020-07-01 | Method for dynamically adapting different IE kernels to browser client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111859216A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445599A (en) * | 2020-12-14 | 2021-03-05 | 招商局金融科技有限公司 | Browser kernel automatic switching method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655863A (en) * | 2009-04-24 | 2010-02-24 | 北京搜狗科技发展有限公司 | Method for loading web pages in browser and browser |
CN102929944A (en) * | 2012-09-28 | 2013-02-13 | 北京奇虎科技有限公司 | Method and device for web page rendering by IE (Internet Explorer) kernel browser |
CN102968341A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser |
CN103500194A (en) * | 2013-09-17 | 2014-01-08 | 北京奇虎科技有限公司 | Method, device and browser for loading webpage |
CN103530329A (en) * | 2013-09-27 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for performing webpage loading and browsers |
-
2020
- 2020-07-01 CN CN202010617717.6A patent/CN111859216A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655863A (en) * | 2009-04-24 | 2010-02-24 | 北京搜狗科技发展有限公司 | Method for loading web pages in browser and browser |
CN102929944A (en) * | 2012-09-28 | 2013-02-13 | 北京奇虎科技有限公司 | Method and device for web page rendering by IE (Internet Explorer) kernel browser |
CN102968341A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser |
CN103500194A (en) * | 2013-09-17 | 2014-01-08 | 北京奇虎科技有限公司 | Method, device and browser for loading webpage |
CN103530329A (en) * | 2013-09-27 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for performing webpage loading and browsers |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445599A (en) * | 2020-12-14 | 2021-03-05 | 招商局金融科技有限公司 | Browser kernel automatic switching method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8516155B1 (en) | Dynamic content conversion | |
CN108228282B (en) | Method and device for loading website page | |
US7689663B2 (en) | Embedded web-based management method | |
CN103942225B (en) | A kind of resource transfer method, client and the system of mixed type applications client | |
US5740430A (en) | Method and apparatus for server-independent caching of dynamically-generated customized pages | |
US7519679B2 (en) | Targeted web page redirection | |
US20090112824A1 (en) | Method and apparatus for generating presentation configuration file of document content | |
US9571601B2 (en) | Method and an apparatus for performing offline access to web pages | |
CN110647700A (en) | Page resource loading method and device, computer equipment and storage medium | |
CN110647699A (en) | Web page rendering method and device, computer equipment and storage medium | |
CN102855334B (en) | A kind of browser and the method obtaining dns resolution data thereof | |
WO2002029597A1 (en) | Web page source data transfer system and method | |
CN105095280A (en) | Caching method and apparatus for browser | |
IL156525A (en) | Method and system of fulfilling request for information from a network client | |
WO2016141076A2 (en) | Provisional execution of dynamic content component | |
CN110928767A (en) | Webpage analysis method, device, equipment and storage medium | |
US8234402B2 (en) | Method and apparatus for request routing | |
CN111431767B (en) | Multi-browser resource synchronization method and device, computer equipment and storage medium | |
WO2001011504A2 (en) | Easily modifiable macro tag for internet advertising | |
CN112685669A (en) | Page rendering method and system | |
CN111859216A (en) | Method for dynamically adapting different IE kernels to browser client | |
CN112468550A (en) | File downloading method and device and electronic equipment | |
CN106888405B (en) | Webpage adjusting method in television browser, browser client and system | |
EP0953921A2 (en) | Device and method for information processing and storage medium containing a control program for information processing | |
CN103227827B (en) | The method and apparatus of request resource |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201030 |
|
RJ01 | Rejection of invention patent application after publication |