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

Issue 493713002: Invalid chars should not be allowed as first character in custom element name (Closed)

Created:
6 years, 4 months ago by deepak.sa
Modified:
6 years, 1 month ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Invalid chars should not be allowed as first character in custom element name This patch *disallows* usage of remaining combining chars as first character in custom element name. Also, usage of colon (":") is not allowed in custom element name. This restriction is according to the NCName production mentioned in the specs. BUG=325673 TEST=fast/dom/custom/invalid-first-char-combinators.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184957

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addrressing comments #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -2 lines) Patch
M LayoutTests/fast/dom/custom/element-names.html View 1 1 chunk +4 lines, -1 line 3 comments Download
A LayoutTests/fast/dom/custom/invalid-first-char-combinators.html View 1 chunk +18 lines, -0 lines 2 comments Download
M Source/core/dom/custom/CustomElement.cpp View 1 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 23 (2 generated)
deepak.sa
PTAL? Thanks!
6 years, 4 months ago (2014-08-20 15:32:59 UTC) #1
deepak.sa
Could you review this? Thanks!
6 years, 4 months ago (2014-08-21 07:37:19 UTC) #2
dominicc (has gone to gerrit)
On 2014/08/21 07:37:19, deepak.sa wrote: > Could you review this? > Thanks! I'm unsure about ...
6 years, 3 months ago (2014-08-27 21:16:41 UTC) #3
esprehn
On 2014/08/27 at 21:16:42, dominicc wrote: > On 2014/08/21 07:37:19, deepak.sa wrote: > > Could ...
6 years, 3 months ago (2014-08-27 21:20:16 UTC) #4
deepak.sa
On 2014/08/27 21:20:16, esprehn wrote: > On 2014/08/27 at 21:16:42, dominicc wrote: > > On ...
6 years, 3 months ago (2014-08-28 04:43:46 UTC) #5
dominicc (has gone to gerrit)
On 2014/08/28 04:43:46, deepak.sa wrote: > On 2014/08/27 21:20:16, esprehn wrote: > > On 2014/08/27 ...
6 years, 3 months ago (2014-09-11 06:20:35 UTC) #6
deepak.sa
On 2014/09/11 06:20:35, dominicc wrote: > On 2014/08/28 04:43:46, deepak.sa wrote: > > On 2014/08/27 ...
6 years, 3 months ago (2014-09-11 06:26:07 UTC) #7
deepak.sa
+dglazkov Could you review this? Thanks!
6 years, 2 months ago (2014-10-07 11:01:39 UTC) #9
dglazkov
I think NCName is okay. https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp File Source/core/dom/custom/CustomElement.cpp (right): https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp#newcode91 Source/core/dom/custom/CustomElement.cpp:91: if (c == 0x0B83 ...
6 years, 2 months ago (2014-10-07 15:13:13 UTC) #10
deepak.sa
On 2014/10/07 15:13:13, dglazkov wrote: > I think NCName is okay. > > https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp > ...
6 years, 2 months ago (2014-10-08 12:46:37 UTC) #11
dglazkov
lgtm https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp File Source/core/dom/custom/CustomElement.cpp (right): https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp#newcode74 Source/core/dom/custom/CustomElement.cpp:74: if ((validNames & StandardNames) && kNotFound != name.find('-') ...
6 years, 2 months ago (2014-10-16 17:41:26 UTC) #12
deepak.sa
On 2014/10/16 17:41:26, dglazkov wrote: > lgtm > > https://codereview.chromium.org/493713002/diff/1/Source/core/dom/custom/CustomElement.cpp > File Source/core/dom/custom/CustomElement.cpp (right): > ...
6 years, 1 month ago (2014-11-04 11:11:02 UTC) #13
deepak.sa
On 2014/11/04 11:11:02, deepak.sa wrote: > On 2014/10/16 17:41:26, dglazkov wrote: > > lgtm > ...
6 years, 1 month ago (2014-11-04 11:11:36 UTC) #14
deepak.sa
Ignore above msgs. They are sent due to some issue with my system. Sorry for ...
6 years, 1 month ago (2014-11-04 11:13:54 UTC) #15
deepak.sa
Ping!
6 years, 1 month ago (2014-11-06 05:44:47 UTC) #16
dglazkov
https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html File LayoutTests/fast/dom/custom/element-names.html (right): https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html#newcode20 LayoutTests/fast/dom/custom/element-names.html:20: 'annotation-xml', What about test expectations? https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/invalid-first-char-combinators.html File LayoutTests/fast/dom/custom/invalid-first-char-combinators.html (right): ...
6 years, 1 month ago (2014-11-06 05:52:43 UTC) #17
deepak.sa
Thanks for the quick review! Comments inline. https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html File LayoutTests/fast/dom/custom/element-names.html (right): https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html#newcode20 LayoutTests/fast/dom/custom/element-names.html:20: 'annotation-xml', On ...
6 years, 1 month ago (2014-11-06 06:20:02 UTC) #18
deepak.sa
https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html File LayoutTests/fast/dom/custom/element-names.html (right): https://codereview.chromium.org/493713002/diff/20001/LayoutTests/fast/dom/custom/element-names.html#newcode20 LayoutTests/fast/dom/custom/element-names.html:20: 'annotation-xml', On 2014/11/06 06:20:02, deepak.sa wrote: > On 2014/11/06 ...
6 years, 1 month ago (2014-11-06 06:38:38 UTC) #19
dglazkov
lgtm
6 years, 1 month ago (2014-11-06 18:17:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/493713002/20001
6 years, 1 month ago (2014-11-07 05:59:31 UTC) #22
commit-bot: I haz the power
6 years, 1 month ago (2014-11-07 07:29:51 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 184957

Powered by Google App Engine
This is Rietveld 408576698