I noticed, while working on #2861387: Use a Twig template for generating html output, that the output of the module does not pass HTML5 validation. The HTML output of the module triggered a couple of errors:

  • Attribute transparency not allowed on element iframe at this point.
  • The frameborder attribute on the iframe element is obsolete. Use CSS instead.
  • The scrolling attribute on the iframe element is obsolete. Use CSS instead.
  • Text not allowed in element iframe in this context.

Note that not all documentation sources agree with these errors. For instance, MDN says fallback content is allowed while the W3 standard says no.

I guess it's time to discuss if and how strict we want to adhere to the W3 standard.

Comments

marcvangend created an issue. See original summary.

  • neffets committed 0a83c6f on 8.x-1.x
    Fixes #3071040: Invalid / non-standard HTML output
    Fixes #2926688 by...

  • neffets committed 1f8185c on 8.x-2.x
    Fixes #3071040: Invalid / non-standard HTML output
    Fixes #2926688 by...

  • mikemadison authored 0b1e8c5 on 7.x-1.x
        Fixes #3071040: Invalid / non-standard HTML output
        Fixes #...

neffets’s picture

Assigned: Unassigned » neffets
Status: Active » Fixed

  • neffets committed 3289b89 on 8.x-1.x
    Issue #3071040, Issue #2926688, Issue #3050971, Issue #3100529 - render...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.