Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove invalid rel attribute, incorrect values

Alexander Brandon Colesc4c1761ff6f8
diff --git a/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
index 8034fd00f03..ddb3a5319fd 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
@@ -143,7 +143,7 @@ describe('wpTablePagination Directive', () => {
const element = jQuery(fixture.elementRef.nativeElement);
function numberOfPageNumberLinks() {
- return element.find('button[rel="next"]').length;
+ return element.find('button[data-rel="next"]').length;
}
app.pagination = new PaginationInstance(1, 1, 10);
diff --git a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
index ef94e4a27e4..68e00ede9b8 100644
--- a/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
+++ b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
@@ -7,7 +7,7 @@
class="op-pagination--item-link op-pagination--item-link_prev"
type="button"
(click)="showPage(pagination.page - 1)"
- rel="prev start">
+ data-rel="prev">
<svg chevron-left-icon size="xsmall" class="op-pagination--item-link-icon op-pagination--item-link-icon_prev" />
{{text.label_previous}}
</button>
@@ -20,7 +20,7 @@
class="op-pagination--item-link"
type="button"
(click)="showPage(pageNumber)"
- rel="next"
+ data-rel="prev"
[attr.aria-label]="text.page_number(pageNumber)"
[textContent]="pageNumber"
></button>
@@ -47,7 +47,7 @@
type="button"
*ngIf="pageNumber !== pagination.page"
(click)="showPage(pageNumber)"
- rel="next"
+ data-rel="next"
[attr.aria-label]="text.page_number(pageNumber)"
[textContent]="pageNumber"
></button>
@@ -64,7 +64,7 @@
class="op-pagination--item-link"
type="button"
(click)="showPage(pageNumber)"
- rel="next"
+ data-rel="next"
[attr.aria-label]="text.page_number(pageNumber)"
[textContent]="pageNumber"
></button>
@@ -77,7 +77,7 @@
class="op-pagination--item-link op-pagination--item-link_next"
type="button"
(click)="showPage(pagination.page + 1)"
- rel="next">
+ data-rel="next">
{{text.label_next}}
<svg chevron-right-icon size="xsmall" class="op-pagination--item-link-icon op-pagination--item-link-icon_next" />
</button>