Skip to content

Binding on role attribute not working in Firefox #754

Description

@TimVevida

I'm submitting a bug report

  • Library Version:
    2.3.1

  • OS
    Kubuntu 18.04

  • Browser:
    Does not work in Firefox 67.0
    Does work in Chromium 74.0.3729.169

Current behavior:
Binding on the role attribute of an element does not work correctly. The role attribute is completely omitted, either using role.bind or the role attribute with interpolation.

Expected/desired behavior:

Unfortunately, the Gist Run is not saving at the moment, so I will just show some sample code:

  • app.html
<template>
  <button click.trigger="presentation = !presentation">Toggle presentation role</button>
  <br/>
  Presentation: ${presentation}
  <table role.bind="presentation ? 'presentation' : null">
    <tr>
      <td>Hello</td>
      <td>world!</td>
    </tr>
  </table>
</template>
  • app.js
export class App {
  presentation = true;
}
  • What is the expected behavior?
    The role attribute is shown and updated when the binding changes.

  • What is the motivation / use case for changing the behavior?
    I want to use the role attribute for accessibility purposes.

Possibly related to #486.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions