Skip to content

Discussion: Element ID convention for refactoring inline event handlers #7026

@WhistlingDonkey

Description

@WhistlingDonkey

Description

As part of the effort to bring SMF up to scratch to be able to properly use modern web security, inline event handlers (onclick, :void etc) will need to be refactored. Whether all the events can be put into loaded script files or not I don't know but first things first is that all these elements that use inline event handlers need to have element id's added so listeners can be attached. While it's not a problem as such that it's hard to do there's somewhere around 300+ elements that will require this. Because there's so many I figured it'd perhaps be good idea to come up with some sort of naming convention for all these id's.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions