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

Mobile Safari sees a flash of <input type=range> on page load #160

Closed
jdelStrother opened this issue Dec 17, 2010 · 6 comments
Closed

Mobile Safari sees a flash of <input type=range> on page load #160

jdelStrother opened this issue Dec 17, 2010 · 6 comments

Comments

@jdelStrother
Copy link
Contributor

Heya,

When I visit a modernizr-enabled page in Mobile Safari on iPhone 4.2, there's a brief flash of a textfield containing '50' at the top of the page, which is the result of an <input type=range> being inserted into the page (

docElement.appendChild(inputElem);
)

Can this be avoided, or perhaps just styled to appear outside the page?

-Jonathan

@paulirish
Copy link
Member

i guess you have good eyes. :)

yeah we can position it offscreen or visibility:hidden it. thx.

@jdelStrother
Copy link
Contributor Author

I was debugging something by reloading a page on my phone over and over...and over again, and it kinda caught my eye :)
It seems more visible if you scroll down a few pixels before hitting the refresh button, for some reason.

@paulirish
Copy link
Member

inputtypes fixup. Address Opera 11 type=color bug. Visually hide the type=range
Cache the inputElemType for speed.

I hope to remove the extra Opera handling when 11.10 comes out.

Closed by be9c058
Closed by be9c058

@shetc
Copy link

shetc commented Feb 8, 2011

Is this issue resolved? I had to remove v1.6 from a project because the 50 flashing on the screen.

Thanks,
Steve

@paulirish
Copy link
Member

Yes. it has been resolved. you can use the modernizr.js here or use the new builder:

http://modernizr.github.com/Modernizr/2.0-beta/

@shetc
Copy link

shetc commented Feb 8, 2011

Thanks Paul!

paulirish added a commit to SlexAxton/Modernizr that referenced this issue May 26, 2011
…type=range

Cache the inputElemType for speed.

I hope to remove the extra Opera handling when 11.10 comes out.

Fixes Modernizr#159
Fixes Modernizr#160
patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
…type=range

Cache the inputElemType for speed.

I hope to remove the extra Opera handling when 11.10 comes out.

Fixes Modernizr#159
Fixes Modernizr#160
This issue was closed.
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

3 participants