algolia / algolia/diffable-html
svg attributes
未关闭
- 主要语言
- JavaScript
- 星标
- 38
- 派生
- 8
- PR 合并指标
- 30 天内没有已合并 PR
描述
format incorrectly changes camelcase attributes from SVG elements (and likely MathML etc.) to lowercase, e.g. `viewBox` becomes `viewbox`.
Replication:
```
import format from 'diffable-html'
console.log(format(''))
```
This is probably not an issue for comparing snapshots, but if you actually want the output of format to be correct, it's kind of important.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先运行 issue 中的复现步骤,并跟踪 formatter 对 SVG 属性的处理方式。检查 camelCase 名称(例如 viewBox)是如何被规范化的,包括相同的行为是否也会影响 MathML。完成标准是:格式化后的 SVG 保留正确的属性大小写。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- tooling, web-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100