debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[SourceTree] Use native HTML features to create tree instead of aria-level

Open ash-tamraz opened this issue 7 years ago • 4 comments

Steps to Reproduce: Examine HTML for SourceTree of Debugger

System Details: Browser: Firefox Nightly 66.0a1 OS: Ubuntu 16.04

Currently SourceTree uses <div> elements with aria-level attributes to create the hierarchy of the source tree. Child and parent nodes are at the same level, with the level only being set by aria-level attributes. In light of best practice for using WAI-ARIA suggesting only using when necessary, and using native HTML features when possible, it would seem to make more sense to create SourceTree with <ul> unordered lists, as in this example.

sourcetree-example sourcetree-example-html

ash-tamraz avatar Dec 27 '18 23:12 ash-tamraz

I believe there is a reason for not using hierarchical elements.

CC @AnshulMalik do you remember?

jasonLaster avatar Dec 28 '18 00:12 jasonLaster

Nope, I am not sure why but there would have been some reason. I think we borrowed the tree component from m-c.

AnshulMalik avatar Dec 28 '18 07:12 AnshulMalik

@jasonLaster @AnshulMalik once we figure out about this decision, i will add this point too in docs/faq.md #7595 to avoid confusions going forward :)

princiya avatar Dec 28 '18 09:12 princiya

Firefox Developer Tools (including Debugger tool) development is now entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

Please reopen this report in Bugzilla if it's still valid.

Honza

janodvarko avatar Feb 26 '21 14:02 janodvarko