|
3 | 3 | /** @import { SourceLocation } from '#shared' */ |
4 | 4 | /** @import { ComponentClientTransformState, ComponentContext } from '../types' */ |
5 | 5 | /** @import { Scope } from '../../../scope' */ |
6 | | -import { escape_html } from '../../../../../escaping.js'; |
7 | 6 | import { |
8 | 7 | cannot_be_set_statically, |
9 | 8 | is_boolean_attribute, |
10 | 9 | is_dom_property, |
11 | 10 | is_load_error_element, |
12 | 11 | is_void |
13 | 12 | } from '../../../../../utils.js'; |
| 13 | +import { escape_html } from '../../../../../escaping.js'; |
14 | 14 | import { dev, is_ignored, locator } from '../../../../state.js'; |
15 | 15 | import { is_event_attribute, is_text_attribute } from '../../../../utils/ast.js'; |
16 | 16 | import * as b from '../../../../utils/builders.js'; |
17 | 17 | import { is_custom_element_node } from '../../../nodes.js'; |
18 | 18 | import { clean_nodes, determine_namespace_for_children } from '../../utils.js'; |
19 | 19 | import { build_getter } from '../utils.js'; |
20 | 20 | import { |
| 21 | + get_attribute_name, |
21 | 22 | build_attribute_value, |
22 | 23 | build_class_directives, |
23 | | - build_set_attributes, |
24 | 24 | build_style_directives, |
25 | | - get_attribute_name |
| 25 | + build_set_attributes |
26 | 26 | } from './shared/element.js'; |
27 | | -import { visit_event_attribute } from './shared/events.js'; |
28 | 27 | import { process_children } from './shared/fragment.js'; |
29 | 28 | import { |
30 | 29 | build_render_statement, |
31 | 30 | build_template_chunk, |
32 | 31 | build_update_assignment, |
33 | 32 | get_expression_id |
34 | 33 | } from './shared/utils.js'; |
| 34 | +import { visit_event_attribute } from './shared/events.js'; |
35 | 35 |
|
36 | 36 | /** |
37 | 37 | * @param {AST.RegularElement} node |
@@ -693,7 +693,6 @@ function build_element_special_value_attribute(element, node_id, attribute, cont |
693 | 693 | ); |
694 | 694 |
|
695 | 695 | if (is_select_with_value) { |
696 | | - let { value } = build_attribute_value(attribute.value, context); |
697 | 696 | state.init.push(b.stmt(b.call('$.init_select', node_id, b.thunk(value)))); |
698 | 697 | } |
699 | 698 |
|
|
0 commit comments