Skip to main content

Bug Tracker

Side navigation

#2703 closed bug (duplicate)

Opened April 17, 2008 08:56AM UTC

Closed April 18, 2008 03:21AM UTC

Wrap manipulation resets state of radiobutton in IE

Reported by: e-andy Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: wrap attributes Cc: e-andy@yandex.ru
Blocked by: Blocking:
Description

Wrap manipulation resets state of radiobutton in IE 6 only (6.0.2900.2180 sp2)

For example:

<html>
<head>
    <script type="text/javascript" src="/media/inc/jquery/main/v1.2.3/jquery.min.js"></script>
    <script type="text/javascript">
        $("form").ready(function() {
            $(":radio[name=xxx][value=1]").attr("checked", "true"); // value may be "1", true, "yes" etc - result doesnt change
            alert($(":radio[name=xxx][value=1]").attr("checked"));
            $("span").wrap("<div></div>");
            alert($(":radio[name=xxx][value=1]").attr("checked"));
        });
    </script>
</head>
<body>
<label>
    <form>
        <span>
            <input type="radio" name="xxx" value="1"/>yes
            <input type="radio" name="xxx" value="0"/>no
        </span>
    </form>
</label>
</body>
</html>
Attachments (0)
Change History (1)

Changed April 18, 2008 03:21AM UTC by davidserduke comment:1

milestone: 1.2.31.2.4
resolution: → duplicate
status: newclosed

I'm sorry but this was deemed too much of a performance hit to fix. Check out duplicate #769 for details. You can also see a proposed patch there that might work for you if you REALLY need to fix it on your own.