Browser for processing page textbox, and method for processing page textbox element
A text box and browser technology, applied in the field of network applications, can solve the problems of specifying different fonts for different characters, inputting multimedia information, etc., to achieve the effect of satisfying preferences and improving experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0074] The browsers mentioned in the embodiment of the present invention can be various, such as Microsoft's Internet Explorer (IE for short), Mozilla Firefox, Google's Chrome, Opera, Apple's Safari, and the like.
[0075] Now, taking IE browser as an example, the specific processing method of the text box element provided by the embodiment of the present invention will be elaborated and illustrated in detail.
[0076] For specific processing on a per page element basis, it may be necessary to implement
[0077] IElementBehavior (element behavior)
[0078] Implementing the IElementBehavior Interface
[0079] Implementing the Notify Method
[0080] Implementing the Init Method
[0081] Implementing the Detach Method
[0082] IElementBehaviorFactory (element behavior factory behavior)
[0083] IElementNamespaceFactory (element namespace factory interface)
[0084] IElementNamespaceFactoryCallback (element namespace callback interface)
[0085] After the initialization set...
Embodiment 2
[0098] For the textarea (text box) page unit, an input box for inputting a large amount of text in the web page is provided for the user, but in the current web page rendering mode, the user can only enter simple text in the textarea, but cannot enter text in a predetermined format, images etc. By providing customized rendering of the textarea at the browser, richer content can be entered in the textarea.
[0099] In this example, corresponding instructions are provided for the specific operation of the text box element.
[0100] 1. First, define the event, and customize the structure and logo of the browser in the GetHostInfo method of IDocHostUIHandler. Set a div layer on the text box element, and use the pCSSBuffer pointer scheduling to pull and execute operations involving the text box element on the div layer.
[0101] 2. In the FindBehavior method of IElementBehaviorFactory, return the implementation object CTextAreaElementBehavior of IElementBehavior, and save the IEl...
Embodiment 3
[0108] The above description is to directly process the text box elements. As we all know, there are many kinds of page elements in the browser. The browser needs to convert and process each page element, and then render the processed page elements to generate The rendered web page.
[0109] figure 2 A schematic structural diagram of a browser for processing page elements according to an embodiment of the present invention is shown. see Figure 4 , the browser includes at least one DOM object processor 410 , a page parser 420 and a DOM processor 430 arranged on the browser side.
[0110] Wherein, there is at least one DOM object processor 410, which is preset on the browser side, and each DOM object processor 410 stores customized processing of a specific DOM object. The number of DOM object processors can be 1, 2, 3, 4, 5 or more, and the specific number is determined according to the number of specific DOM objects and the number of customized processing. Figure 4 For i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


