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

Implement attribute start matching, ie [foo^=bar] #4

Open
rafaelw opened this issue Apr 11, 2015 · 0 comments · May be fixed by #10
Open

Implement attribute start matching, ie [foo^=bar] #4

rafaelw opened this issue Apr 11, 2015 · 0 comments · May be fixed by #10
Assignees

Comments

@rafaelw
Copy link
Owner

rafaelw commented Apr 11, 2015

Moved from: https://code.google.com/p/mutation-summary/issues/detail?id=27

(from bruce.krysiak)
I want to observe elements with attributes starting with a certain string. These may not be whitespace-separated, and I only want to match at the start - normal CSS matching like [foo^=bar]

I have a clone implementing this, but the instructions for how to request a pull/merge are very nonexistent. Any suggestions? I'm happy to update the wiki too once it's in if you like.

Thanks, great work on this library. Hope you don't mind my reversing some test assertions to match the mocha signatures in order to get better test failure messages.


Actually, it wasn't too hard to also throw in the rest of the missing attribute selectors:

[foo$=bar]
[foo*=bar]
[foo|=bar]

I almost skipped the hyphen matcher, but since I did the rest I figured it was worthwhile. The others seem valuable at least. All in the same cloned repo: https://code.google.com/r/brucekrysiak-mutation-summary/source/browse

brucek added a commit to brucek/mutation-summary that referenced this issue Apr 13, 2015
@brucek brucek linked a pull request Apr 13, 2015 that will close this issue
@brucek brucek assigned rafaelw and unassigned brucek Apr 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants