forked from vim-jp/vital.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTML.txt
47 lines (36 loc) · 1.46 KB
/
HTML.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
*vital/Web/HTML.txt* HTML parser written in pure Vim script.
Maintainer: mattn <[email protected]>
==============================================================================
CONTENTS *Vital.Web.HTML-contents*
INTRODUCTION |Vital.Web.HTML-introduction|
INTERFACE |Vital.Web.HTML-interface|
Functions |Vital.Web.HTML-functions|
Structures |Vital.Web.HTML-structures|
==============================================================================
INTRODUCTION *Vital.Web.HTML-introduction*
*Vital.Web.HTML* is HTML parser Library. This is based on |Vital.Web.XML|.
==============================================================================
INTERFACE *Vital.Web.HTML-interface*
------------------------------------------------------------------------------
FUNCTIONS *Vital.Web.HTML-functions*
parse({content}) *Vital.Web.HTML.parse()*
Parse content into DOM object.
parseFile({file}) *Vital.Web.HTML.parseFile()*
Parse html file into DOM object.
parseURL({url}) *Vital.Web.HTML.parseURL()*
Get and parse html into DOM object.
------------------------------------------------------------------------------
STRUCTURES *Vital.Web.HTML-structures*
DOM object is structured as |Directory| like following.
>
{
"name": "a",
"attr": {
"href": "http://example.com",
"title": "example",
},
"child": [...]
}
<
==============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl