WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED REMIND
149806
<input> of type=checkbox/radio duplicates in DOM when inside a position:fixed; <div>
https://bugs.webkit.org/show_bug.cgi?id=149806
Summary
<input> of type=checkbox/radio duplicates in DOM when inside a position:fixed...
Zach
Reported
2015-10-05 07:40:59 PDT
On Safari when using a Webkit View. If an <input type="checkbox"> or <input type="radio"> is placed inside a <div style="position:fixed;"> then the input will be duplicated outside the div on the body element of the DOM whenever that input is clicked. I've created an example jsfiddle here
http://jsfiddle.net/cy8npxby/
that has the position:fixed; div with a checkbox input inside.
Attachments
Duplicate input video
(
deleted
)
2015-10-06 09:45 PDT
,
Zach
no flags
Details
Objective C project
(50.73 KB, application/zip)
2015-10-09 07:57 PDT
,
Zach
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2015-10-05 22:32:25 PDT
> I've created an example jsfiddle here
http://jsfiddle.net/cy8npxby/
that has the position:fixed; div with a checkbox input inside.
Could you please clarify what are expected and actual results for this test? How can one tell that the test is failing?
Zach
Comment 2
2015-10-06 08:25:53 PDT
(In reply to
comment #1
)
> > I've created an example jsfiddle here
http://jsfiddle.net/cy8npxby/
that has the position:fixed; div with a checkbox input inside. > > Could you please clarify what are expected and actual results for this test? > How can one tell that the test is failing?
The actual result (inside a webkit view) is that the input radio or checkbox is duplicate in the DOM when clicked. The expected results are that the input checkbox or radio button does not duplicate when clicked. The example I've provided in jsfiddle is only showing how the <div> should be set up inside a webkit view for the defect to be reproducible. The defect is NOT reproducible inside the jsfiddle I've provided, it IS reproducible inside a webkit view.
Alexey Proskuryakov
Comment 3
2015-10-06 09:03:41 PDT
> The actual result (inside a webkit view) is that the input radio or checkbox is duplicate in the DOM when clicked.
Could you please clarify how you see the DOM? It's almost certain that there is a miscommunication here. Can you attach a screenshot, and point out what exactly is wrong there?
> The defect is NOT reproducible inside the jsfiddle I've provided, it IS reproducible inside a webkit view.
The behavior on this test case appears correct to me in a WebKit1 WebView (opening the test case in MiniBrowser on Mac).
Zach
Comment 4
2015-10-06 09:45:42 PDT
Created
attachment 262518
[details]
Duplicate input video
Zach
Comment 5
2015-10-06 09:47:51 PDT
I've attached a video of the defect occurring. The radio buttons are inside a position:fixed; modal. (This would also happen inside a position:fixed; <div>)
Alexey Proskuryakov
Comment 6
2015-10-06 10:14:09 PDT
Thank you for the video. It's a video of some app though, what happens when reproducing with your test case? Can you provide a complete test case with an Objective-C project?
Zach
Comment 7
2015-10-09 07:57:27 PDT
Created
attachment 262770
[details]
Objective C project I have attached an objective-c project containing a 10.11 WebKit webview that duplicates the issue. The webview is pointed to the jsfiddle previously mentioned.
Alexey Proskuryakov
Comment 8
2015-10-09 11:25:23 PDT
Thank you, I could finally reproduce after trying multiple OS versions: - doesn't reproduce on OS X 10.9.5; - doesn't reproduce on OS X 10.9.5 with trunk WebKit; - reproduces on OS X 10.10.5; - doesn't reproduce on OS X 10.11; Given that, this looks like a bug that was introduced with OS X 10.10 and fixed in Safari's updated WebKit, but that was never fixed in the system framework. I CC'ed some people who may be able to suggest a workaround.
Zach
Comment 9
2015-10-09 12:02:27 PDT
Thank you for your help. Please let me know if there is a workaround for this issue.
Zach
Comment 10
2015-10-15 09:16:29 PDT
Is there any known workaround for this bug?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug