Opened 12 years ago

Closed 12 years ago

#5193 closed defect (fixed)

Editor: Safari/Webkit line breaks have bogus class

Reported by: haysmark Owned by: liucougar
Priority: high Milestone: 1.1
Component: Editor Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

In test_Form, I noticed that in Safari/Webkit?, if you press enter to add a new line Safari appends 'class="webkit-block-placeholder"' to the tag. Example:

<h1>changed</h1>
<h1><br class="webkit-block-placeholder" /></h1>
<p>This is the changed content set by setValues</p>

Editor should be removing these browser classes from the submit value.

Change History (4)

comment:1 Changed 12 years ago by Adam Peller

should we really be trying to normalize this content? aren't there lots of cross-browser quirks? and this particular one seems to have no ill effects.

comment:2 Changed 12 years ago by alex

Owner: changed from liucougar to alex
Status: newassigned

it does break input to systems like wordpress which try to server-filter the accepted attributes and values.

comment:3 Changed 12 years ago by liucougar

Owner: changed from alex to liucougar
Status: assignednew

steal another one back :)

comment:4 Changed 12 years ago by liucougar

Resolution: fixed
Status: newclosed

(In [12169]) fixes #5193

Note: See TracTickets for help on using tickets.