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

Color module strange markup in color.theme.inc #4468

Closed
indigoxela opened this issue Jul 7, 2020 · 4 comments
Closed

Color module strange markup in color.theme.inc #4468

indigoxela opened this issue Jul 7, 2020 · 4 comments

Comments

@indigoxela
Copy link
Member

Description of the bug

It doesn't seem to cause any problems, but the closing tag should match the opening tag to get valid markup:

https://github.com/backdrop/backdrop/blob/9994d4d00bc00819450acf911f30624308e8325b/core/modules/color/color.theme.inc#L25

It opens an <object> but closes an <iframe>
Browsers seem to interpret it as "object", I didn't see any side effects.

What is this supposed to be? Iframe or object?

@klonos
Copy link
Member

klonos commented Jul 7, 2020

Good catch @indigoxela 👍 ...this seems to have been a CR oversight in https://github.com/backdrop/backdrop/pull/2228/files#diff-854a186b448a82fbcebaf8c1b34cd404R25 (see #3186). Now as to whether it should be an <object> or an <iframe>, perhaps @hosef can chime in?

@hosef
Copy link

hosef commented Aug 13, 2020

Yes, that was an oversight on my part. It was originally an iframe, but I changed it to an object since some browsers were doing weird things with their handling of iframes.

I made a PR that fixes the issue. backdrop/backdrop#3242

@klonos
Copy link
Member

klonos commented Aug 13, 2020

Thanks @hosef ...RTBC 👍

@ghost
Copy link

ghost commented Aug 21, 2020

Thanks @indigoxela for reporting this, @hosef for the PR and @klonos for testing! I've merged backdrop/backdrop#3242 into 1.x and 1.16.x.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants