Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$sanitize removes the tabindex property #5853

Closed
@carpasse

Description

@carpasse

Hi guys

I am trying to sanitize some html with the $sanitize service of the ngSanitize module. Unfortuantely $sanitize removes the tabindex property so I can make the link "not fucusable".
so this piece of code:

$sanitize('<a ng-href="someUrl" tabindex="-1">go</a>')

will return

'<a href="someUrl">go</a>"

I have been searching a bit and I couldn´t find any security issue regarding the tabindex property so could it be possible to add this property to the list of valid attrs???

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions