-
Notifications
You must be signed in to change notification settings - Fork 438
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
DOM contains duplicated HTML elements #2368
Comments
Flagged as an accessibility issue as this is the cause of several "id attribute value must be unique" issues (because the I believe this bug is also reproducible easily in our e2e tests, and it's the reason why we skip accessibility scanning of parts of the header: https://github.com/DSpace/dspace-angular/blob/main/cypress/e2e/header.cy.ts#L13-L16 Pulled this over to the 7.6.x maintenance board in search of a volunteer to investigate a way to avoid this HTML element duplication. |
I ran into this in a report from SiteImprove (which has been visited upon our sites by corporate IT). I think it happens because |
@mwoodiupui : Oh weird, you are correct.. that's a big red flag:
I suspect it should NOT be in the "dspace" theme file (the last one)... as the I have no idea why it's in two places. That is probably the problem here. There's three options then:
I won't have time to try this out myself, but I suspect the solution may be in one of those three options (not sure which is best yet -- it may require some testing to first understand why it is in a different place in just the |
OK, I'm going to try removing it from our custom theme's |
I am refactoring the whole header as part of #2656, which also fixes this issue. |
Ported to 7.x in #2858 |
A request to the DSpace app start page (
/home
) results in a DOM that contains some HTML elements twice (marked red and green in the screenshot below)In consequence the
ds-auth-nav-menu
element is rendered twice which results in duplicated input elementsemail
andpassword
(if password authentication is enabled). At least in this case the reason for element duplication is not the support of a small-width version of the page as the small-width version redirects to/login
when you click the log-in button in the navigation bar.Currently it is not clear if this issue affects the site performance.
The text was updated successfully, but these errors were encountered: