Index: /FCKeditor/branches/features/floating_dialog/_whatsnew.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/_whatsnew.html	(revision 1395)
+++ /FCKeditor/branches/features/floating_dialog/_whatsnew.html	(revision 1396)
@@ -53,5 +53,9 @@
 			only when no class is present in the current element, and selecting that item will 
 			clear the current class (it does apply to any attribute, not only classes).</li>
-
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/191">#191</a>] The scrollbars
+			are now being properly shown in Firefox Mac when placing FCKeditor inside a hidden
+			div.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/503">#503</a>] Orphaned
+			&lt;li&gt; elements now get properly enclosed in a &lt;ul&gt; on output.</li>
 	</ul>
 	<p>
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/classes/fckpanel.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/classes/fckpanel.js	(revision 1395)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/classes/fckpanel.js	(revision 1396)
@@ -187,4 +187,12 @@
 		}
 
+		// Toggle the iframe scrolling attribute to prevent the panel
+		// scrollbars from disappearing in FF Mac. (#191)
+		if ( FCKBrowserInfo.IsGecko && FCKBrowserInfo.IsMac )
+		{
+			this._IFrame.scrolling = '' ;
+			FCKTools.RunFunction( function(){ this._IFrame.scrolling = 'no'; }, this ) ;
+		}
+
 		// Be sure we'll not have more than one Panel opened at the same time.
 		if ( FCKPanel._OpenedPanel )
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1395)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1396)
@@ -177,5 +177,7 @@
 				// Element Node.
 				case 1 :
-					if ( !FCKListsLib.BlockElements[ oNode.nodeName.toLowerCase() ] && 
+					var nodeName = oNode.nodeName.toLowerCase() ;
+					if ( !FCKListsLib.BlockElements[ nodeName ] && 
+							nodeName != 'li' &&
 							!oNode.getAttribute('_fckfakelement') &&
 							oNode.getAttribute('_moz_dirty') == null )
@@ -1157,2 +1159,3 @@
 
 
+
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckxhtml.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckxhtml.js	(revision 1395)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckxhtml.js	(revision 1396)
@@ -404,4 +404,33 @@
 	},
 
+	// Fix orphaned <li> nodes (Bug #503).
+	li : function( node, htmlNode, targetNode )
+	{
+		// If the XML parent node is already a <ul> or <ol>, then add the <li> as usual.
+		if ( targetNode.nodeName.IEquals( ['ul', 'ol'] ) )
+			return FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;
+
+		var newTarget = FCKXHtml.XML.createElement( 'ul' ) ;
+
+		// Reset the _fckxhtmljob so the HTML node is processed again.
+		htmlNode._fckxhtmljob = null ; 
+
+		// Loop through all sibling LIs, adding them to the <ul>.
+		do
+		{
+			FCKXHtml._AppendNode( newTarget, htmlNode ) ;
+			
+			// Look for the next element following this <li>.
+			do
+			{
+				htmlNode = FCKDomTools.GetNextSibling( htmlNode ) ;
+			}
+			while ( htmlNode && htmlNode.nodeType == 3 && htmlNode.nodeValue.Trim().length == 0 )
+		}
+		while ( htmlNode && htmlNode.nodeName.toLowerCase() == 'li' )
+
+		return newTarget ;
+	},
+
 	// Fix nested <ul> and <ol>.
 	ol : function( node, htmlNode, targetNode )
