Open Bug 993746 Opened 10 years ago Updated 2 years ago

name of @keyframes rules is not properly escaped

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

ASSIGNED

People

(Reporter: xidorn, Assigned: xidorn)

Details

Attachments

(2 files)

Attached file test case (deleted) —
When read from DOM API, name of @keyframes rules is not escaped.
Attached patch patch (deleted) — Splinter Review
Attachment #8403640 - Flags: review?(jfkthame)
Comment on attachment 8403640 [details] [diff] [review]
patch

The GetCssText change seems correct, but I think the GetName change is wrong.  Why would we do CSS escaping there?

Also, it seems worth adding a test for both GetCssText and GetName; it could go in layout/style/test/test_keyframes_rules.html
Attachment #8403640 - Flags: review?(jfkthame) → review-
(In reply to David Baron [:dbaron] (needinfo? me) (UTC-7) from comment #2)
> Comment on attachment 8403640 [details] [diff] [review]
> patch
> 
> The GetCssText change seems correct, but I think the GetName change is
> wrong.  Why would we do CSS escaping there?

Hmm, it seems you are right, since SetName accepts arbitrary string. There is some subtle difference in setter behavior of name attribute between CSS Animation and Counter Style spec. Maybe one of them should be fixed to keep coherence.

> Also, it seems worth adding a test for both GetCssText and GetName; it could
> go in layout/style/test/test_keyframes_rules.html

That's reasonable.
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: