Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The w3c validator complains about the "length" attribute:
Error Line 244, Column 407: Attribute "length" is not a valid attribute. Did you mean "maxlength" or "content"?
….pdf" type="application/pdf" length="327892" title="NP_7+1_ENG.pdf">Press Rel
Comments
Comment #1
quicksketchYes it is intentional, it's to follow the suggested microformat for representing a file. See http://microformats.org/wiki/file-format-examples
Comment #2
quicksketchWell after looking at the MicroFormats page extensively I realized the "length" attribute was most likely mistyped in the way it was represented. I've updated the page (it's a wiki after all) to move the length attribute inside of "type", so that it is proper HTML and matches the description prior to the code example. I'll make a the code change to FileField to match this.
Comment #3
quicksketchI've moved the length attribute to be part of the type attribute per the changes above.