Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML 'ID' attribute for the Events in calendar . #6

Open
krisnakp opened this issue May 17, 2013 · 1 comment
Open

HTML 'ID' attribute for the Events in calendar . #6

krisnakp opened this issue May 17, 2013 · 1 comment
Assignees

Comments

@krisnakp
Copy link

Hi Sam,

I am looking for assigning 'id' attribute to each event div generated by the calendar api. This will help in automation testing as the automation tool we use can easily identify any element in the HTML dom using standard attributes like 'id' or 'name' etc. I understand that uid property that I pass with every event definition is listed as attribute named 'data-id' for the generated

but that doesn't helps me much as it is not a standard HTML attribute.
My requirement is(Last one is optional):

Each event
should be uniquely identifiable by 'id' attribute.
I should be able to pass the id value while defining the event(just like uid property).
If no value is specified for id during definition of event then api should auto-generate and assign sequential numbers as id for each event
.
Please help me with this.

Thanks
-Krishna K P

@ghost ghost assigned samatcd Jun 3, 2013
@samatcd
Copy link
Member

samatcd commented Jun 3, 2013

A surprising number of browsers support CSS targeting of elements using arbitrary attributes like data-id.

div[data-id]{} works in IE7+: http://css-tricks.com/attribute-selectors/

I'm guessing the issue is that your testing tool won't read non-standard attributes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants