ampproject / ampproject/worker-dom

Attribute names are lowercase

Open
#1,019 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Hi,

I used a preact component in amp-script tag and I noticed that my inline SVG has viewBox attribute all lowercase after hydrating. It is allright in non-AMP page with the same component and preact.

```

Contributor guide

Open the contributing guide

Research direction

Reproduce the AMP/amp-script case with the inline SVG shown in the report and compare the hydrated attribute name with the non-AMP result. Done means hydration preserves the SVG viewBox casing instead of producing viewbox; the issue does not name a file or test to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.