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

Tooltip element is a div inside a span #32

Open
samwilson opened this issue Sep 30, 2019 · 0 comments
Open

Tooltip element is a div inside a span #32

samwilson opened this issue Sep 30, 2019 · 0 comments

Comments

@samwilson
Copy link
Contributor

The tooltip is added as a <div> inside a <span> element, e.g.:

<span style="position: relative; white-space: nowrap;">
	<div style="background-color: white; padding: 0.2em; border: 1px solid black; position: absolute; top: 1em; left: 0em; z-index: 15; display: none;">
		<span style="cursor: pointer;">
			<img src="..." srcset="..." class="wmamapbutton noprint" title="Show location on an interactive map" alt="" style="padding: 0px 3px 0px 0px; cursor: pointer;">
			&nbsp;WikiMiniAtlas
		</span>
	</div>
	<a class="external text" href="//tools.wmflabs.org/geohack/geohack.php?pagename=Flight_19&amp;params=29_N_79_W_">
		...
	</a>
</span>

This is not valid HTML, and I think is causing one of the issues described in T231424.

It looks like it should be possible to make this a span, and as .fadeIn() sets display:block it should work the same.

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

No branches or pull requests

1 participant