Select box not working correctly

RESOLVED FIXED

Status

RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: chaplinkyle, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 651473 [details]
select  Mozilla Developer Network - Google Chrome_2012-08-13_13-04-03.png

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.75 Safari/537.1

Steps to reproduce:

Viewed https://developer.mozilla.org/en-US/docs/HTML/Element/select

Saw HTML in example results:     
<select name="select">
        <option value="value1">Value 1</option>
        <option value="value2" selected>Value 2</option>
        <option value="value3">Value 3</option>
</select>


Actual results:

Saw rendered HTML as :

<select>
        <option>Value 1</option>
        <option>Value 2</option>
        <option>Value 3</option>
</select>


Expected results:

Correct HTML should have been rendered: 
<select name="select">
        <option value="value1">Value 1</option>
        <option value="value2" selected>Value 2</option>
        <option value="value3">Value 3</option>
</select>
PR @ https://github.com/mozilla/kuma/pull/526

chaplinkyle, I have written a fix for this. A bot will come by and mark this bug as RESOLVED soon. A few days after it does, you should visit the page in question and hit Ctrl+Shift+R to fix the issue.

Convoluted I know. Sorry about that.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

6 years ago
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/b625bd715c507310fef23c30cfdb8395ea4d3310
fix bug 782350: Whitelisted select box attributes.

https://github.com/mozilla/kuma/commit/a2677ac03e95c28110fc61ed09b2d61ab9e3d396
Merge pull request #526 from openjck/select-attributes

fix bug 782350: Whitelisted select box attributes.

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Updated

6 years ago
Version: MDN → unspecified
(Assignee)

Updated

6 years ago
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.