-
Notifications
You must be signed in to change notification settings - Fork 739
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
accesskey adds html as text #252
Comments
change .text to .html when adding item.name to the item
accesskey adds span as text. fixes swisnl#252
…-text change .text to .html when adding item.name to the item fixes #252
This causes following issue again: |
The item name should be set by the programmer so that shouldn't be an issue. If the item name is dynamic then the programmer needs to scrub it before adding it to the context menu |
yeah, the risk is low, but this is breaking change, and I think the accesskey's span element should be inserted with different way, instead of modifying the name property to HTML. |
opened #299 |
Nice catch @arai-a, i didn't realize the reason there. |
I disagree that the item name needs to be added as text. I think it is more likely that the programmer would want to add html to allow styles then the programmer allowing the item name to be set by a users input. |
there's 'html' type for that purpose, iiuc.
|
Hmm, what i did notice though is that callbacks are not supported on a HTML type, which makes it a bit harder to use. |
I guess, there should be another way to create selectable menuitem that parses HTML, that also works in form label and sub menu. The API should explicitly tell it's parsed as HTML (like, property name is Also, current Both issues could be fixed at once, couldn't they? |
I agree with @arai-a here, we do need to have a look on how we can support using html in a different way. I'll be merging his fix. |
I agree. |
ah, I meant |
setting the accesskey option adds a span around the letter as text.
The text was updated successfully, but these errors were encountered: