Message "send message" page has broken layout due to nested <A> tags

Bug #1997918 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
22.10
Fix Released
High
Unassigned
23.04
Fix Released
High
Unassigned

Bug Description

Currently under certain conditions the previous message display looks broken in the collapsible area part.

This is due to a <a> tag being nested within another <a> tag.

Coding standards say "Nested links are illegal - The a element can be wrapped around entire
paragraphs, lists, tables, and so forth, even entire sections, so long
as there is no interactive content within (e.g., buttons or other links)."

We need to fix this up so that it follows html guidelines and also keeps the info we want

Tags: regression
Revision history for this message
Robert Lyon (robertl-9) wrote :
Robert Lyon (robertl-9)
description: updated
tags: added: regression
Revision history for this message
Robert Lyon (robertl-9) wrote :

To test:

Spin up a php 8.1 docker instance

Send a message to two people and then login as one of them and go to inbox - read message and hit reply all

Revision history for this message
Robert Lyon (robertl-9) wrote :

There is also a broken lang string for deleted users

To test this:

1) As admin send a message to two people Person A and Person B
2) Delete Person A
3) Log in as person B and reply to the message - the message shown above the reply form should say
 To: Person B ; 1 deleted account

4) As admin send a message to three people Person C, D, and E
2) Delete Person C and D
3) Log in as person E and reply to the message - the message shown above the reply form should say
 To: Person E ; 2 deleted accounts

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13498
Committed: https://git.mahara.org/mahara/mahara/commit/c7035977109743834f0da6503c523c3175054d1d
Submitter: "Robert Lyon <email address hidden>"
Branch: main

commit c7035977109743834f0da6503c523c3175054d1d
Author: Robert Lyon <email address hidden>
Date: Fri Nov 25 12:13:36 2022 +1300

Bug 1997918: Fix issue with nested <A> links

Nested links are illegal - The a element can be wrapped around entire
paragraphs, lists, tables, and so forth, even entire sections, so long
as there is no interactive content within (e.g., buttons or other links).

We now have the 'From' link be part of the list within the
collapsible body

Signed-off-by: Robert Lyon <email address hidden>
Change-Id: Iecdefb95f9471eaa6dd68a6073e91c85b94f39dc
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "22.10_DEV" branch: https://reviews.mahara.org/c/mahara/+/13566

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/c/mahara/+/13566
Committed: https://git.mahara.org/mahara/mahara/commit/ba18b0d3661b20f6469e7e97ae6ffb9af58aed91
Submitter: "Robert Lyon <email address hidden>"
Branch: 22.10_DEV

commit ba18b0d3661b20f6469e7e97ae6ffb9af58aed91
Author: Robert Lyon <email address hidden>
Date: Fri Nov 25 12:13:36 2022 +1300

Bug 1997918: Fix issue with nested <A> links

Nested links are illegal - The a element can be wrapped around entire
paragraphs, lists, tables, and so forth, even entire sections, so long
as there is no interactive content within (e.g., buttons or other links).

We now have the 'From' link be part of the list within the
collapsible body

Signed-off-by: Robert Lyon <email address hidden>
Change-Id: Iecdefb95f9471eaa6dd68a6073e91c85b94f39dc
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit c7035977109743834f0da6503c523c3175054d1d)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 23.04.0 → none
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
no longer affects: mahara
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.