Issue metadata
Sign in to add a comment
|
innerText of option element in select element with size attribute is blank string
Reported by
ninninke...@gmail.com,
Mar 31 2016
|
||||||||||||||||||||||||
Issue description
Chrome Version : 49.0.2623.87 (Official Build) (64 bit)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: OK
Firefox: FAIL ( does not support innerText )
IE: OK
What steps will reproduce the problem?
(1)
Write HTML below
<form name="f1" id="f1">
<select name="s1" id="s1">
<option value="1">option-text</option>
</select>
</form>
<form name="f2" id="f2">
<select name="s2" id="s2" size="5">
<option value="1">option-text</option>
</select>
</form>
<script>
alert( document.f1.s1.options[0].innerText );
alert( document.f2.s2.options[0].innerText );
</script>
(2)
Load the HTML.
(3)
What is the expected result?
alert "option-text" 2 times.
What happens instead?
The 2nd alert shows nothing.
,
Jul 13 2016
That roll contains a blink roll, fixed link to the blink roll: https://chromium.googlesource.com/chromium/src/+log/c99e83972d3f0b590a52bf52a7f802728e96c667..70656d9f6c0cd5bda1f42d774423990bfc8dc784 Potentially https://chromium.googlesource.com/chromium/src/+/17b44a00e420f752fab01241d92f6522ba5252bb Attaching testcase from comment 0 as a file. Still reproduces in 53.0.2785.8 (Official Build) dev (64-bit)
,
Jul 13 2016
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by brajkumar@chromium.org
, Apr 1 2016Status: Untriaged (was: Unconfirmed)