Open
Bug 993746
Opened 11 years ago
Updated 2 years ago
name of @keyframes rules is not properly escaped
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
ASSIGNED
People
(Reporter: xidorn, Assigned: xidorn)
Details
Attachments
(2 files)
409 bytes,
text/html
|
Details | |
1.35 KB,
patch
|
dbaron
:
review-
|
Details | Diff | Splinter Review |
When read from DOM API, name of @keyframes rules is not escaped.
Assignee | ||
Comment 1•11 years ago
|
||
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-
Assignee | ||
Comment 3•11 years ago
|
||
(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.
Updated•2 years ago
|
Severity: trivial → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•