New issue
Advanced search Search tips

Issue 894679 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 893951
Owner: ----
Closed: Oct 12
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

onchange Event not work after commit#597055

Reported by aptx4869...@gmail.com, Oct 12

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3572.0 Safari/537.36

Steps to reproduce the problem:
1. open the attached html file with Chromium newer than 71.0.3572.0(master@{#597055})
>>>>>>html source of the case file<<<<<<
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>Test onchange</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<center>
<h1>Test onchange</h1>
try select: 
<select id="select1" onchange="document.getElementById('select1r').innerHTML=document.getElementById('select1').value;">
	<option style="display: none"></option>
	<option value="1">1</option>
	<option value="2">2</option>
</select>
<p>
you selected: 
<span id="select1r" />
</p>
</center>
</html>
>>>>>>end of html<<<<<<
2. select '1' or '2' in the selection area on the page
3. no more steps:-)

What is the expected behavior?
when selected, it will show '1' or '2' after the 'you selected:' text, for that i added an onchange Event for the select element.it work properly before #597043.

What went wrong?
after #597055, the onchange Event does not work and the text does not show properly.

Did this work before? Yes 

Does this work in other browsers? Yes

Chrome version: 71.0.3572.0  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

i've reviewed the changelog and find it in #597054, a new event handler was created, i wondered if it is the new handler what caused this problem.
 
test-onchange.html
648 bytes View Download
Components: -Blink>DOM Blink>Forms>Select
Mergedinto: 893951
Status: Duplicate (was: Unconfirmed)
sorry:-(
just update Chromium to the latest version 71.0.3578.0(master@{#598932})
it seems that the problem was fixed

Sign in to add a comment