Re: Support type selector for camel-cased SVG elements in HTML. (issue 1099963003 by rune@opera.com)

0 views
Skip to first unread message

ru...@opera.com

unread,
Apr 29, 2015, 6:43:08 AM4/29/15
to esp...@chromium.org, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com

esp...@chromium.org

unread,
Apr 29, 2015, 9:04:42 PM4/29/15
to ru...@opera.com, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com
On 2015/04/29 at 10:43:07, rune wrote:
> ping

I talked to tab about this, why not just treat SVG case insensitively
always?

https://1c9a255-dot-chromiumcodereview-hr.appspot.com/1099963003/

ru...@opera.com

unread,
Apr 30, 2015, 7:20:39 AM4/30/15
to esp...@chromium.org, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com
On 2015/04/30 01:04:42, esprehn wrote:
> On 2015/04/29 at 10:43:07, rune wrote:
> > ping

> I talked to tab about this, why not just treat SVG case insensitively
> always?

I don't know the rationale for the way it's spec'ed. Hixie would know, I
guess.
I found some very long posts on the whatwg list, but not able to find a
definitive answer. What's really weird is the inconsistency between
case-insensitivity of tag names in the source and the case-sensitivity of
the
selector against the camelCased form the tags names are transformed into.


https://1c9a255-dot-chromiumcodereview-hr.appspot.com/1099963003/

esp...@chromium.org

unread,
May 1, 2015, 1:47:03 AM5/1/15
to ru...@opera.com, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com
On 2015/04/30 at 11:20:39, rune wrote:
> On 2015/04/30 01:04:42, esprehn wrote:
> > On 2015/04/29 at 10:43:07, rune wrote:
> > > ping
> >
> > I talked to tab about this, why not just treat SVG case insensitively
always?

> I don't know the rationale for the way it's spec'ed. Hixie would know, I
guess. I found some very long posts on the whatwg list, but not able to
find a
definitive answer. What's really weird is the inconsistency between
case-insensitivity of tag names in the source and the case-sensitivity of
the
selector against the camelCased form the tags names are transformed into.

I talked to Tab about this more today, I think the agreement is to just make
selectors always match everything case insensitively. So we'd change
matchesTagName to have a check for isHTMLElement() and do what it does now,
and
another case where it does a case insensitive compare of the localName (and
namespace?)

https://codereview.chromium.org/1099963003/

ru...@opera.com

unread,
May 5, 2015, 5:39:31 AM5/5/15
to esp...@chromium.org, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com
I've uploaded new patch sets and modified the description with notes in both
description and tests about the spec violation.

I've run blink_perf.css which looks ok locally.


https://codereview.chromium.org/1099963003/

ru...@opera.com

unread,
May 5, 2015, 9:36:48 AM5/5/15
to esp...@chromium.org, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com

ru...@opera.com

unread,
May 5, 2015, 9:38:00 AM5/5/15
to esp...@chromium.org, p...@chromium.org, tim...@chromium.org, alexis...@intel.com, apavlo...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, dglazko...@chromium.org, eae+bli...@chromium.org, ed+bli...@opera.com, rob....@samsung.com, sigb...@opera.com
On 2015/05/05 13:36:48, rune wrote:
> Another rebase-leftover.

Done.

https://codereview.chromium.org/1099963003/
Reply all
Reply to author
Forward
0 new messages