Skip to content

Use of MaterialSideProfile creates invalid HTML (div in ul) #418

@Medo42

Description

@Medo42

Can be seen easily in https://gwtmaterialdesign.github.io/gwt-material-patterns/snapshot/#sidenav_push_header

The div.side-profile sits directly inside the ul.sidenavPushHeader. However, as far as I can tell, only li elements are allowed as children of ul elements.

Browsers largely don't seem to care about this restriction (after all, they have evolved in a wonderful world of broken websites that should still be presented as well as possible), but we're getting this flagged as an issue when inspecting our application for accessibility problems. It makes sense to me that some accessibility tools might not be as good at dealing with broken HTML as the major browsers, so it may be especially important in that area to ensure the HTML is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions