Skip to content

含 placeholder 的输入框写入时包含 placeholder 文本 #4

Description

@zch200

问题描述

遇到有 placeholder 的输入框(如 ChatGPT ProseMirror 编辑器),写入内容时 placeholder 文本被拼入。

根因

L2 (writeViaValueSplice) 读取 AXValue 时浏览器将 placeholder 作为值返回,拼接后 placeholder 被保留。

建议方案

L2 拼接前检查 AXPlaceholderValue 属性,若匹配则视为空字段。需验证浏览器是否暴露该属性。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions