Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug where the serializer would fail since Opera changed the bui…

…ldNumber output.
  • Loading branch information...
commit 9bf622d2f701e70abc309bb62ca217de055c347b 1 parent dd91c19
Johan Sörlin authored November 17, 2010

Showing 1 changed file with 11 additions and 15 deletions. Show diff stats Hide diff stats

  1. 26  jscripts/tiny_mce/classes/dom/Serializer.js
26  jscripts/tiny_mce/classes/dom/Serializer.js
@@ -144,21 +144,17 @@
144 144
 
145 145
 			if (s.fix_table_elements) {
146 146
 				t.onPreProcess.add(function(se, o) {
147  
-					// Since Opera will crash if you attach the node to a dynamic document we need to brrowser sniff a specific build
148  
-					// so Opera users with an older version will have to live with less compaible output not much we can do here
149  
-					if (!tinymce.isOpera || opera.buildNumber() >= 1767) {
150  
-						each(t.dom.select('p table', o.node).reverse(), function(n) {
151  
-							var parent = t.dom.getParent(n.parentNode, 'table,p');
152  
-
153  
-							if (parent.nodeName != 'TABLE') {
154  
-								try {
155  
-									t.dom.split(parent, n);
156  
-								} catch (ex) {
157  
-									// IE can sometimes fire an unknown runtime error so we just ignore it
158  
-								}
  147
+					each(t.dom.select('p table', o.node).reverse(), function(n) {
  148
+						var parent = t.dom.getParent(n.parentNode, 'table,p');
  149
+
  150
+						if (parent.nodeName != 'TABLE') {
  151
+							try {
  152
+								t.dom.split(parent, n);
  153
+							} catch (ex) {
  154
+								// IE can sometimes fire an unknown runtime error so we just ignore it
159 155
 							}
160  
-						});
161  
-					}
  156
+						}
  157
+					});
162 158
 				});
163 159
 			}
164 160
 		},
@@ -468,7 +464,7 @@
468 464
 			// and since we can't feature detect a crash we need to sniff the acutal build number
469 465
 			// This fix will make DOM ranges and make Sizzle happy!
470 466
 			impl = n.ownerDocument.implementation;
471  
-			if (impl.createHTMLDocument && (tinymce.isOpera && opera.buildNumber() >= 1767)) {
  467
+			if (impl.createHTMLDocument) {
472 468
 				// Create an empty HTML document
473 469
 				doc = impl.createHTMLDocument("");
474 470
 

0 notes on commit 9bf622d

Please sign in to comment.
Something went wrong with that request. Please try again.