Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for processing HTML code fragments

An HTML code and fragment technology, applied in the field of processing HTML code fragments, can solve the problem that text information cannot be displayed normally.

Inactive Publication Date: 2019-04-26
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The use characteristics of the above three text tags are as follows: only text information can be added to the span tag, and when other tags are mounted under the span tag, an error will be reported when the code is compiled; when a span tag or text information is mounted under the a tag, the text The information is displayed normally. When the text tag or non-text tag is mounted under the a tag, although no error is reported when the code is compiled, the text information cannot be displayed normally; when the a tag, span tag or text information is mounted under the text tag, the text information Normal display, when the text tag or non-text tag is mounted under the text tag, although the code does not report an error when compiling, the text information cannot be displayed normally
[0004] During the quick app development process, if the developer does not write the code according to the usage characteristics of the text tag, the text information will not be displayed normally

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for processing HTML code fragments
  • A method and device for processing HTML code fragments
  • A method and device for processing HTML code fragments

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

[0085] The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for processing an HTML code segment. The method is used for processing an HTML code segment of a fast application. The method comprises the following steps of: Obtaining an original HTML code segment, obtaining node information of related nodes mounted on each text node in the original HTML code segment, and according to the node information, processing the original HTML code segment to generate a new HTML code segment, the new HTML code segment not comprising the structure of mounting the text node under the text node. According to the method, the structure of mounting the text node under the text node included in the original HTML code segment is removed; Therefore, the problem that the text information cannot be normally displayed when the original HTML code segment is executed due to the existence of the structure is avoided, and the normal display of the text information in the generated new HTML code segment is ensured.

Description

technical field [0001] The present disclosure relates to the field of computer communication technologies, and in particular, to a method and apparatus for processing HTML code fragments. Background technique [0002] Quick application is a new application form based on the mobile phone hardware platform. It has the complete application experience of traditional APP, and has the characteristics of no installation and click-to-use. The quick application framework has its own unique tags, which are different from the traditional HTML (HyperText Markup Language, Hyper Text Markup Language) tags. Specifically, there are three text tags used to display text in the quick application, which are : text tags, a tags and span tags. [0003] The usage characteristics of the above three text tags are as follows: only text information can be added to the span tag. When other tags are mounted under the span tag, an error will be reported when the code is compiled; when the span tag or te...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/44G06F8/451
Inventor 董永清孙良木
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products