fix(docs,www): reduce warnings of invalid jsx & mdx attributes #14398
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
A few fixes for the docs & www site. Mainly invalid mdx elements for
<svg>
,<video>
&<source>
. Along with a couple next.js warnings.The experimental feature of
mdxRs
is enabled indocs
. But this isn't doing anything as you don't have the version of@next/mdx
that supports it installed. Version@next/mdx``^13.0.2
supports this. Andnext
^13.0.2
will stop logging a warning ofunexpected property
. See the additional context screenshots below.What is the current behavior?
Warnings & errors are logged in terminal and browser console when running docs & www in dev mode.
In some cases a
<video>
would notautoPlay
orloop
with invalid attributes. See the additional context screenshots below.What is the new behavior?
Fixes should remove some of the warning & errors logs while working in dev mode.
<video>
in.mdx
files that are set toautoPlay
andloop
should do so now.Additional context