This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22923 - replace el-number identifiers to el-tagname
Summary: replace el-number identifiers to el-tagname
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML a11y APIs (editor: Steve Faulkner, Cynthia Shelly) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: alexander surkov
QA Contact: HTML a11y API spec bugbot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-12 15:21 UTC by alexander surkov
Modified: 2013-08-14 15:55 UTC (History)
5 users (show)

See Also:


Attachments

Description alexander surkov 2013-08-12 15:21:57 UTC
All td have 'el-number' ID attributes, it'd be much comfortable if we had 'el-tagname' instead, for example, 'el-label' instead 'el-91'. It must be very handy for cross references. Sounds good?
Comment 1 Jason Kiss 2013-08-12 21:07:11 UTC
Sure. I wouldn't prioritise this, though. How do you propose to deal with elements like input? or attributes, which currently use 'att-number', like value, which have numerous entries?

Anyway, I'm happy for you to take this on :)
Comment 2 alexander surkov 2013-08-13 02:01:22 UTC
(In reply to comment #1)
> Sure. I wouldn't prioritise this, though. How do you propose to deal with
> elements like input?

like el-input-number

> or attributes, which currently use 'att-number', like
> value, which have numerous entries?

I didn't look yet but we should be able to handle it similar way
 
> Anyway, I'm happy for you to take this on :)

I can do it as I go (then mark the bug fixed when we don't have items to rename).
Comment 3 Jason Kiss 2013-08-13 04:19:23 UTC
(In reply to comment #2)

> like el-input-number

That should work for both elements and attributes.
Comment 4 Jason Kiss 2013-08-13 20:54:53 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> > like el-input-number
> 
> That should work for both elements and attributes.

Small matter, but noticed the new IDs are using underscores and not hyphens. I think hyphens are preferable. They're what we were previously using, and what (most?) of the specs are using now. Should be an easy regex find/replace.
Comment 5 alexander surkov 2013-08-13 20:58:29 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > 
> > > like el-input-number
> > 
> > That should work for both elements and attributes.
> 
> Small matter, but noticed the new IDs are using underscores and not hyphens.
> I think hyphens are preferable. They're what we were previously using, and
> what (most?) of the specs are using now. Should be an easy regex
> find/replace.

usually I go with underscores because it's treated as one word by editors, double-click is used to select it entirely, hypens are not so nice. Anyway, fine with me, I will change it.