The text of a attribute's value, or "" when it carries none * (` `), so every attribute reads through one path. */
| 2014 | /* The text of a <script> attribute's value, or "" when it carries none |
| 2015 | * (`<script type>`), so every attribute reads through one path. */ |
| 2016 | static const char *script_attribute_value(CBMExtractCtx *ctx, TSNode attribute) { |
| 2017 | TSNode value_node = attribute; |
| 2018 | if (!find_first_descendant_of(attribute, "attribute_value", &value_node)) { |
| 2019 | return ""; |
| 2020 | } |
| 2021 | return cbm_node_text(ctx->arena, value_node, ctx->source); |
| 2022 | } |
| 2023 | |
| 2024 | /* Apply one <script> attribute to the parse decision. Returns false when the |
| 2025 | * attribute rules the block out of inline extraction: |
no test coverage detected