Opened 11 years ago
Closed 11 years ago
#28217 closed defect (bug) (fixed)
select tag added to each new option line in select list
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | has-patch needs-testing |
Focuses: | javascript | Cc: |
Description
Steps to reproduce
paste a
select list into Text editor. Switch to Visual.
each
<option>
line gets
<select>
tags automatically added, which breaks the form.
The problem does not arise if the option tags are not separated by line breaks: the line breaks trigger the addition of unwanted select tags (without any wpautop plugin present). The problem did not arise on WP 3.8.
Attachments (3)
Change History (12)
#1
@
11 years ago
- Focuses javascript added
- Keywords has-patch added
- Version changed from 3.9.1 to 3.9
#2
@
11 years ago
- Keywords needs-testing added
- Milestone changed from Awaiting Review to 4.0
Not sure how this worked in MCE 3.x. Also having line breaks inside <select>
, adds <p>
/<br>
on the front end. Don't see a point in preserving the line breaks, better to remove them (MCE will strip all line breaks on getContent() anyways).
This ticket was mentioned in IRC in #wordpress-dev by DrewAPicture. View the logs.
11 years ago
#5
@
11 years ago
- Owner set to azaozz
- Status changed from new to reviewing
@azaozz: What's left here?
Not sure if this is the best solution, but it fixes it.
This is a 3.9 regression... :(