Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#14942 closed defect (bug) (fixed)

TinyMCE inserts <html xmlns=""> in IE9

Reported by: andrewspittle Owned by: azaozz
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0.1
Component: TinyMCE Keywords:
Focuses: Cc:

Description (last modified by lloydbudd)

In IE9 TinyMCE inserts a <html xmlns=""> at the beginning of a post. This causes any text that is entered to disappear after pressing "Update Post"

ENV: WP 3.0.1 / IE beta 9.0.7930.16406 on

To reproduce:

  1. Edit an existing post in IE9
  2. With the visual editor selected add a new line of text
  3. Press "Update Post"

The text added in step 2. will disappear once the post updates.

Console in IE9's a JavaScript error on line 1 character 64599 (screenshot also attached).

SCRIPT438: Object doesn't support this property or method tiny mce.js?ver=327-1235-syntaxhighlighter2.3.9, line 1 character 64599

The highlighted bit of JS is:

return h.item?h.item(0):h.parentElement()


Do not use the Visual Editor tab, instead edit the html directly in the HTML tab.

Additional Details

Tested in Firefox 3.6.8 but did not occur there.

Attachments (1)

Screen shot 2010-09-22 at 7.55.19 AM.png (135.2 KB) - added by andrewspittle 10 years ago.

Download all attachments as: .zip

Change History (8)

#1 @lloydbudd
10 years ago

  • Description modified (diff)

#2 @lloydbudd
10 years ago

  • Description modified (diff)

#3 follow-up: @nacin
10 years ago

Needs to be reported upstream to both TinyMCE and IE9.

#4 in reply to: ↑ 3 @lloydbudd
10 years ago

Replying to nacin:

Needs to be reported upstream to both TinyMCE and IE9.

Matt shared with me the link http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=80665 , so it seems TinyMCE are aware of related issues.

I think Toni of Automatttic is following up with Microsoft.

#5 @lloydbudd
10 years ago

  • Owner set to azaozz
  • Status changed from new to assigned

#12574 "Update Tinymce" : r15683, r15684 likely relate

#6 @nacin
10 years ago

  • Milestone changed from Awaiting Review to 3.1

#7 @demetris
10 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Just tested with:

  • IE 9 Beta 9.0.7930.16406
  • IE 9 Platform Preview 7 1.9.8023.6000

The issue still exists in WP 3.0.2.

The issue appears to be fixed in WP 3.1 latest trunk (r16723).

Closing as fixed accordingly.

Note: See TracTickets for help on using tickets.