By partyka on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0
Issue links:
Description:
File link attributes contained microdata that did not comply with the HTML spec. Prior to this change, the length/file size of the file was appended to the link, but this is not a valid attribute to be set.
From the w3c HTML 5 working draft for web authors
The type attribute, if present, gives the MIME type of the linked resource. It is purely advisory. The value must be a valid MIME type.
After this change, the length/filesize attribute is no longer part of the HTML output.
Example:
Before change:
<a href="https://www.example.com/sites/default/files/2020-07/textfile.txt" type="text/plain; length=4671">a text file</a>
After change:
<a href="https://www.example.com/sites/default/files/2020-07/textfile.txt" type="text/plain">a text file</a>
Impacts:
Module developers
Themers