Hello,

Concerning the W3C Validation, the template of the Youtube video uses the "frameborder" attribute which is now obsolete. If we want to customize the border, we need to do CSS.
As we can see on MDN concerning frameborder, "This is an obsolete API and is no longer guaranteed to work."
https://developer.mozilla.org/fr/docs/Web/API/HTMLIFrameElement

We should remove this attribute which generate an error in the HTML validation. I will add the patch in a few moment.

Comments

phjou created an issue. See original summary.

phjou’s picture

  • nagy.balint committed 11d1f90 on 7.x-1.x authored by phjou
    Issue #2879018 by phjou: frameborder attribute is obsolete
    
nagy.balint’s picture

Status: Active » Needs review

Thanks!

Do we need to add some css to make sure there are no frameborders? Or its the default now to not have them?

Status: Needs review » Needs work
phjou’s picture

If we want to keep the same behaviour, yes we need to add some css in order to remove the border and override the browser style (in firefox at least, I haven't tested all the browsers).
I can change the patch to add some CSS if you want?

phjou’s picture

I did a patch in order to add the CSS which remove the border. I saw that you have already merged my previous patch, so I did a new one without the frameborder modification.

This present patch also reorganize the module by creating some folders in order to be a little clearer:
- templates
- css
- js

I hope, it's good for you.

phjou’s picture

Oops, just noticed that the #attached was working only the first time of the scald rendering.

I was returning directly HTML into the player instead of the theme array. The problem is solved when we do that.

phjou’s picture

Status: Needs work » Needs review
nagy.balint’s picture

Status: Needs review » Closed (outdated)