Skip to content
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

Content Element HTML - change quotes after saving #3575

Closed
berecont opened this issue Oct 14, 2021 · 5 comments
Closed

Content Element HTML - change quotes after saving #3575

berecont opened this issue Oct 14, 2021 · 5 comments
Labels
Milestone

Comments

@berecont
Copy link

Affected version(s)

Contao 4.9.21, Contao 4.12.2
I didn't test other versions

Content Element HTML:
<source src="files/layout/video/css/my_265.mp4" type='video/mp4; codecs="avc1"'>
after saving the element it changes to:
<source src="files/layout/video/css/my_265.mp4" type="video/mp4; codecs="avc1"">
and notes error: Unexpected character after attribute value. Invalid character in attribute name

chanching the quotes and single quotes in their position it will work
<source src="files/layout/video/css/my_265.mp4" type="video/mp4; codecs='avc1'">

@leofeyer leofeyer added the bug label Oct 21, 2021
@leofeyer leofeyer added this to the 4.9 milestone Oct 21, 2021
@ausi
Copy link
Member

ausi commented Oct 24, 2021

I would guess that this is a problem in the textarea output. We have to enable double encoding there so that type="video/mp4; codecs=&quot;avc1&quot;" gets output correctly in the browser.

@stale
Copy link

stale bot commented Dec 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 24, 2021
@ausi ausi removed the stale label Dec 24, 2021
@stale
Copy link

stale bot commented Feb 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 23, 2022
@ausi ausi removed the stale label Feb 23, 2022
@ausi ausi self-assigned this Mar 20, 2022
@ausi
Copy link
Member

ausi commented May 28, 2022

Tried today to find a fix for this but didn’t succeed 😕

Such problems no longer occur with the restructured input encoding in Contao 5.0, but I don’t know how we can fix this in 4.9 or 4.13.

@ausi ausi removed their assignment May 28, 2022
@leofeyer
Copy link
Member

Guess it is a known limitation then.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants