Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Issue 1924313002: Make <attr-name> accept any CSS identifier (Closed)

Created:
4 years, 7 months ago by rwlbuis
Modified:
4 years, 7 months ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, blink-reviews-layout_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make <attr-name> accept any CSS identifier Make <attr-name> accept any CSS identifier rather than rejecting those starting with minus. With this change we do match attributes starting with minus unless they are dynamically added. Behavior matches Firefox. Committed: https://crrev.com/50b643c442f43bba16bdc9355e53729d6dd5c87c Cr-Commit-Position: refs/heads/master@{#391412}

Patch Set 1 #

Patch Set 2 : V2 #

Patch Set 3 : V3 #

Total comments: 4

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus-expected.html View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/attr-parsing.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/attr-parsing-expected.txt View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
rwlbuis
PTAL. Since the HTML parser accepts attributes starting with minus (AFAIK it should not) I ...
4 years, 7 months ago (2016-04-28 21:06:22 UTC) #4
rune
On 2016/04/28 21:06:22, rwlbuis wrote: > PTAL. > > Since the HTML parser accepts attributes ...
4 years, 7 months ago (2016-05-03 11:03:43 UTC) #5
rune
https://codereview.chromium.org/1924313002/diff/40001/third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus.html File third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus.html (right): https://codereview.chromium.org/1924313002/diff/40001/third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus.html#newcode4 third_party/WebKit/LayoutTests/fast/css-generated-content/attr-minus.html:4: dv { display: none; } What's this rule for? ...
4 years, 7 months ago (2016-05-03 11:03:52 UTC) #7
rune
FTR, we currently accept dash-prefixed element selectors, yet the never match as the parser does ...
4 years, 7 months ago (2016-05-03 11:05:21 UTC) #8
rwlbuis
rune thanks for the review and thumbs up. I'll wait a bit for @timloh's feedback ...
4 years, 7 months ago (2016-05-03 14:38:52 UTC) #9
Timothy Loh
lgtm
4 years, 7 months ago (2016-05-04 00:51:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924313002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924313002/60001
4 years, 7 months ago (2016-05-04 00:58:22 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-04 02:13:04 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 02:15:28 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/50b643c442f43bba16bdc9355e53729d6dd5c87c
Cr-Commit-Position: refs/heads/master@{#391412}

Powered by Google App Engine
This is Rietveld 408576698