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

Blazor views use the Blazor element ID _bl_# which may not be safe #3066

Open
1 task done
mattleibow opened this issue Nov 13, 2024 · 1 comment
Open
1 task done
Labels

Comments

@mattleibow
Copy link
Contributor

Description

We need a way to find elements, and we are currently using the blazor ID. This may not be safe as there is a comment in the API:

The Id is unique at least within the scope of a given user/circuit. This property
is public to support Json serialization and should not be used by user code.

Code

The blazor sample

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

3.118.0-preview.1 (Next Preview)

Last Known Good Version of SkiaSharp

Other (Please indicate in the description)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Other (Please indicate in the description)

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mattleibow
Copy link
Contributor Author

mattleibow commented Nov 13, 2024

Probably not too crazy as we are doing the same thing as the SDK:

https://github.com/dotnet/aspnetcore/blob/v9.0.0/src/Components/Web.JS/src/Rendering/ElementReferenceCapture.ts#L10-L17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant