File size: 4,824 Bytes
8e34d6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ace9ee0
 
 
 
 
 
 
 
 
 
 
8e34d6f
 
ace9ee0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
---
license: cc0-1.0
dataset_info:
  features:
  - name: image
    dtype: image
  - name: requested_url
    dtype: string
  - name: displayed_url
    dtype: string
  - name: num_frames
    dtype: int64
  - name: body_elements
    sequence: string
  - name: dom_snapshot
    struct:
    - name: documents
      list:
      - name: documentURL
        dtype: int64
      - name: title
        dtype: int64
      - name: baseURL
        dtype: int64
      - name: contentLanguage
        dtype: int64
      - name: encodingName
        dtype: int64
      - name: publicId
        dtype: int64
      - name: systemId
        dtype: int64
      - name: frameId
        dtype: int64
      - name: nodes
        struct:
        - name: parentIndex
          sequence: int64
        - name: nodeType
          sequence: int64
        - name: shadowRootType
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: nodeName
          sequence: int64
        - name: nodeValue
          sequence: int64
        - name: backendNodeId
          sequence: int64
        - name: attributes
          sequence:
            sequence: int64
        - name: textValue
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: inputValue
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: inputChecked
          struct:
          - name: index
            sequence: int64
        - name: optionSelected
          struct:
          - name: index
            sequence: int64
        - name: contentDocumentIndex
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: pseudoType
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: pseudoIdentifier
          struct:
          - name: index
            sequence: 'null'
          - name: value
            sequence: 'null'
        - name: isClickable
          struct:
          - name: index
            sequence: int64
        - name: currentSourceURL
          struct:
          - name: index
            sequence: int64
          - name: value
            sequence: int64
        - name: originURL
          struct:
          - name: index
            sequence: 'null'
          - name: value
            sequence: 'null'
      - name: layout
        struct:
        - name: nodeIndex
          sequence: int64
        - name: styles
          sequence:
            sequence: int64
        - name: bounds
          sequence:
            sequence: float64
        - name: text
          sequence: int64
        - name: stackingContexts
          struct:
          - name: index
            sequence: int64
        - name: paintOrders
          sequence: int64
      - name: textBoxes
        struct:
        - name: layoutIndex
          sequence: int64
        - name: bounds
          sequence:
            sequence: float64
        - name: start
          sequence: int64
        - name: length
          sequence: int64
      - name: scrollOffsetX
        dtype: int64
      - name: scrollOffsetY
        dtype: int64
      - name: contentWidth
        dtype: int64
      - name: contentHeight
        dtype: int64
    - name: strings
      sequence: string
  - name: capture_options
    struct:
    - name: computedStyles
      sequence: string
    - name: includePaintOrder
      dtype: bool
  - name: source_index
    dtype: int64
  - name: source_key_name
    dtype: string
  - name: source_image_ssim
    dtype: float64
  - name: detected_language
    dtype: string
  splits:
  - name: train
    num_bytes: 176072783.06768078
    num_examples: 295
  download_size: 46652388
  dataset_size: 176072783.06768078
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
language:
- en
- zh
- nl
- cs
- ko
pretty_name: Interesting DOM snapshots
size_categories:
- n<1K
source_datasets:
- gbenson/webui-dom-snapshots
---

# Dataset Card for Interesting DOM snapshots

A small split of [gbenson/webui-dom-snapshots](https://huggingface.co./datasets/gbenson/webui-dom-snapshots).

- **Curated by:** [Gary Benson](https://gbenson.net/)
- **Languages:** Mostly English, some Chinese, Dutch, Czech and Korean
- **License:** [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/)

## Uses

I'm using it to develop a [DOM-aware tokenizer](https://github.com/gbenson/dom-tokenizers) for HTML.

## Bias, Risks, and Limitations

This isn't a representative split of the source dataset, it's a number of edge cases I flagged to investigate.