Hidden text passed to Readablity
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- web-dev
调研方向
使用 Reuters 示例 URL 重现该问题,并跟踪隐藏的 span 如何变成传递给 Readability 的已清理 span;issue 未指定文件或测试。完成的标准是,使用所示样式的隐藏文本会被排除在提取的内容之外,并且有一个回归测试覆盖此示例。
由索引模型根据 Issue 内容生成。
描述
This is the sample page:
https://www.reuters.com/legal/qualcomm-saw-nuvia-buy-chance-save-14-billion-year-arm-fees-ceo-tells-jury-2024-12-18/
It contains the hidden text in this form:
<span style="border: 0px; clip: rect(0px, 0px, 0px, 0px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;">, opens new tab</span>
This is passed as a cleaned span to Readability, though it should be obvious that it is hidden:
<span>, opens new tab</span>
- 主要语言
- JavaScript
- 星标
- 11.5k
- 派生
- 735
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mozilla/readability 的其他 Issue
-
JSDOMParser: Element is missing a lang accessor可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 76/100
mozilla/readability#1026 ·
-
PHRASING_ELEMS missing <u>, <s>, and <bdi> elements causes paragraph splitting可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
mozilla/readability#997 ·
-
难度 3/5 1-2 天 新手友好度 58/100
mozilla/readability#1031 ·
-
难度 3/5 1-2 天 新手友好度 42/100
mozilla/readability#1029 ·
-
难度 3/5 1-2 天 新手友好度 58/100
mozilla/readability#1024 ·
查看 mozilla/readability 的全部 Issue
相似的 Issue
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
documentation
难度 2/5 半天 新手友好度 78/100
facioquo/stock-indicators-dotnet#2300 ·
维护者通常 1 天内回复
-
good first issue needs-triage priority: low
难度 2/5 1-3 小时 新手友好度 82/100
melodic-software/claude-code-plugins#6982 · 1 条评论 ·
维护者通常 1 天内回复
-
val() setter uses the first control's type for a mixed selection可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 半天 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 75/100
douglascrockford/Misty#35 ·
维护者通常 1 天内回复