-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation error: Element mediaelementwrapper not allowed as child of element div in this context. #2800
Comments
Haven't tested yet how ever you can try to replace fakeNodeName: 'mediaelementwrapper', With div and then build mejs again. |
Thanks for your tip, but erplacing the fakeNodeName with 'div' leads to |
Source tag should be valid to be used in this context You can try to validate first the html code with mediaelmements disabled to check if html code is fine... |
Yes, I see. But there is a difference in the code of MediaElement.js and the example on the page you sent me. The reason for this error: Contexts in which element source may be used: You can check it on https://www.mediaelementjs.com/ after replacing the |
Hi, thanks for your great library.
Using the Nu Html Checker (https://validator.w3.org/nu/about.html) which does not check the source code but the generated code ("Check serialized DOM of current page") I get the error message:
Element mediaelementwrapper not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
I see no possibility to avoid it - do you?
Changing the name into anything else ('me-wrapper' or even 'div') leads to the error message:
Element source not allowed as child of element video in this context. (Suppressing further errors from this subtree.)
We need a "no error validation" from the Nu Html Checker as a prerequisite for a wcag-test (https://testen.bitv-test.de/index.php?a=di&iid=99, sorry, its in German)
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: