Skip to main content

Bug Tracker

Side navigation

#6011 closed bug (fixed)

Opened February 02, 2010 03:52PM UTC

Closed February 06, 2010 12:59AM UTC

Last modified March 15, 2012 10:46AM UTC

Numeric character references, eg,   are inserted as plain text when text does not contain tags

Reported by: doug Owned by: john
Priority: major Milestone: 1.4.2
Component: manipulation Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:
Description

Inserting, for example, .html(" ") actually inserts " " due to calling context.createTextNode( elem ) in the 'clean' method. The inappropriate call is due to rhtml.test( elem ) returning false.

SOLUTION:

Check for num. char. ref., which have '#' in the rhtml reg exp.

rhtml = /<|&#?\\w+;/,

Attachments (0)
Change History (3)

Changed February 02, 2010 09:03PM UTC by john comment:1

owner: → john
priority: criticalmajor
status: newassigned

Good catch, checking in to this.

Changed February 03, 2010 02:32AM UTC by dmethvin comment:2

Should it also accept char entities like

" < > &
or are the numeric ones all we need to handle?

Changed February 06, 2010 12:59AM UTC by john comment:3

component: coremanipulation
resolution: → fixed
status: assignedclosed