Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove code that is no more necessary for validating .strobe selector cheat #235

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

piradata
Copy link

@piradata piradata commented Aug 9, 2022

checkResults functions already prevents cheating with ".strobe" selector by comparing
$(".table").html() == ruleTable.html()
because
ruleTable.find(rule).addClass("strobe");
will never find anything if dependent on the .strobe class because
ruleTable.find(".strobe").removeClass("strobe");
already removes the class right before :)

… cheat

checkResults functions already prevents cheating with ".strobe" selector by comparing
`$(".table").html() == ruleTable.html()`
because
`ruleTable.find(rule).addClass("strobe");`
will never find anything if dependent on the .strobe class as
`ruleTable.find(".strobe").removeClass("strobe");`
removes the class right before
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant