Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2042)
+++ _whatsnew.html (working copy)
@@ -112,6 +112,8 @@
properly wrap the text.
[#2239] The Samplepostdata.php has been
changed from "<?=" to "<? echo".
+ [#2254] Minor fix in fckselection for
+ nodeTagName object.
Version 2.6
Index: editor/_source/internals/fckselection_gecko.js
===================================================================
--- editor/_source/internals/fckselection_gecko.js (revision 2042)
+++ editor/_source/internals/fckselection_gecko.js (working copy)
@@ -162,7 +162,7 @@
while ( oContainer )
{
- if ( oContainer.nodeType == 1 && oContainer.tagName == nodeTagName ) return true ;
+ if ( oContainer.nodeType == 1 && oContainer.tagName == nodeTagName.toLocalUpperCase() ) return true ;
oContainer = oContainer.parentNode ;
}
@@ -180,7 +180,7 @@
while ( oContainer )
{
- if ( oContainer.nodeName == nodeTagName )
+ if ( oContainer.nodeName == nodeTagName.toLocalUpperCase() )
return oContainer ;
oContainer = oContainer.parentNode ;
Index: editor/_source/internals/fckselection_ie.js
===================================================================
--- editor/_source/internals/fckselection_ie.js (revision 2042)
+++ editor/_source/internals/fckselection_ie.js (working copy)
@@ -147,7 +147,7 @@
while ( oContainer )
{
- if ( oContainer.tagName == nodeTagName ) return true ;
+ if ( oContainer.tagName == nodeTagName.toLocalUpperCase() ) return true ;
oContainer = oContainer.parentNode ;
}