Skip to content

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

Open
piradata wants to merge 1 commit intoflukeout:developfrom
piradata:patch-1
Open

Remove code that is no more necessary for validating .strobe selector cheat#235
piradata wants to merge 1 commit intoflukeout:developfrom
piradata:patch-1

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
@piradata
Copy link
Author

anyone here?

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 this pull request may close these issues.

1 participant