WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 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()

Workaround

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 4 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 lloydbudd4 years ago

  • Description modified (diff)

comment:2 lloydbudd4 years ago

  • Description modified (diff)

comment:3 follow-up: nacin4 years ago

Needs to be reported upstream to both TinyMCE and IE9.

comment:4 in reply to: ↑ 3 lloydbudd4 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.

comment:5 lloydbudd4 years ago

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

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

comment:6 nacin3 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:7 demetris3 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.