Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Android: Browser and WebView crash when only one input is present on page #4103

Closed
@wexstorm

Description

@wexstorm

While developing a PhoneGap-App for Android, I discovered this very serious bug.
When just one textinput is present on a page, Android crashes without a warning. (Doesn't matter if in WebView via Phonegap or native Browser).
Also, if several inputs are present (some disabled, some readonly) and an a hidden div which is displayed afterwards, this issue can be reproduced.
Tested on:

  • Motorola 2.2.1
  • Simulator 2.1, 2.2, 2.3

These "fixes" didn't work:

  • Adding a second invisible input-Element
  • Removing the type-Attribute
  • trying different PhoneGap-/jQM-Versions

Any suggestions please?

Here is my sample-code:

<!DOCTYPE html>
<html>
    <head>
        <title>jqm test</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="css/jquery.mobile.css" media="all">
        <link rel="stylesheet" type="text/css" href="css/jquery.theme.min.css" media="all">
        <script type="text/javascript" src="js/jquery.js"></script>
        <script src="js/jquery.mobile.js" type="text/javascript"></script>
    </head>
    <body>
        <div  data-role="page">
            <form>
                <input type="text" value="" />
            </form>
        </div>
    </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions