mirror of
https://github.com/SqrtMinusOne/biome.git
synced 2025-12-10 14:35:13 +03:00
biome-api-data: improve parsing
This commit is contained in:
parent
8fa742a0d8
commit
ccbf00abcd
2 changed files with 1069 additions and 1069 deletions
2134
biome-api-data.el
2134
biome-api-data.el
File diff suppressed because it is too large
Load diff
|
|
@ -185,13 +185,13 @@ SECTION is a DOM element. Return a list of fields as defined by
|
|||
(:options . ,(mapcar
|
||||
(lambda (opt) (cons (dom-attr opt 'value)
|
||||
(biome-api-parse--fix-string
|
||||
(dom-text opt))))
|
||||
(dom-texts opt))))
|
||||
(dom-by-tag elem 'option)))))
|
||||
fields)
|
||||
else if (eq (dom-tag elem) 'label)
|
||||
do (push (cons (or (cdr (assoc (dom-attr elem 'for) field-id-mapping))
|
||||
(dom-attr elem 'for))
|
||||
(biome-api-parse--fix-string (dom-text elem)))
|
||||
(biome-api-parse--fix-string (dom-texts elem)))
|
||||
field-names))
|
||||
(cl-loop for (id . name) in field-names
|
||||
do (when-let ((field (assoc id fields)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue