~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckxhtml_gecko.js

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        // Create the XMLSerializer.
24
24
        var oSerializer = new XMLSerializer() ;
25
25
 
26
 
        if ( FCKConfig.ProcessHTMLEntities )
27
 
        {
28
 
                // Return the serialized XML as a string.
29
 
                // Due to a BUG on Gecko, the special chars sequence "#?-:" must be replaced with "&"
30
 
                // for the XHTML entities.
31
 
                return oSerializer.serializeToString( this.MainNode ).replace( FCKXHtmlEntities.GeckoEntitiesMarkerRegex, '&' ) ;
32
 
        }
33
 
        else
34
 
                return oSerializer.serializeToString( this.MainNode ) ;
 
26
        // Return the serialized XML as a string.
 
27
        // Due to a BUG on Gecko, the special chars sequence "#?-:" must be replaced with "&"
 
28
        // for the XHTML entities.
 
29
        return oSerializer.serializeToString( this.MainNode ).replace( FCKRegexLib.GeckoEntitiesMarker, '&' ) ;
35
30
}
36
31
 
37
32
// There is a BUG on Gecko... createEntityReference returns null.
54
49
                        var sAttName = oAttribute.nodeName.toLowerCase() ;
55
50
                        var sAttValue ;
56
51
 
57
 
                        // The "_fckxhtmljob" attribute is used to mark the already processed elements.
58
 
                        if ( sAttName == '_fckxhtmljob' )
 
52
                        // Ignore any attribute starting with "_fck".
 
53
                        if ( sAttName.startsWith( '_fck' ) )
59
54
                                continue ;
60
55
                        // There is a bug in Mozilla that returns '_moz_xxx' attributes as specified.
61
56
                        else if ( sAttName.indexOf( '_moz' ) == 0 )