WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#40464 new defect (bug)

Embed video in Wordpress gives W3c Markup Validation issue

Reported by: pmbaldha Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.4
Component: Embeds Keywords:
Focuses: Cc:
PR Number:

Description

When embed video in wordpress, the below validation issue occurs:
Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead.

Change History (2)

#1 @swissspidy
3 years ago

  • Component changed from General to Embeds
  • Version changed from 4.7.3 to 4.4

Hey there,

Thanks for your report and welcome to Trac!

Although the frameborder attribute is not supported by HTML5, browsers do still support it. For broader compatibility, the embed HTML being used by WordPress (see get_post_embed_html()) includes that attribute.

If we'd remove it, we certainly need to make sure there are no visual regressions.

#2 @pmbaldha
3 years ago

Major browsers supports html5 now. I think we need to remove frameborder attribute from every place.

Note: See TracTickets for help on using tickets.