Changeset 4833


Ignore:
Timestamp:
12/29/09 11:54:21 (4 years ago)
Author:
garry.yao
Message:

Updating CKEDITOR.test.fixHtml with the following bug fixes:

  1. Properly ignore comments and doctype within HTML.
  2. Works with self-closing tags which containing attributes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKTester/runners/yuitest/test.js

    r4732 r4833  
    8484                } 
    8585 
    86                 html = html.replace( /(<[^>\s]*)(.*?)(>)/g, function( match, start, body, end ) 
     86                html = html.replace( /(<\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g, function( match, start, body, end ) 
    8787                        { 
    8888                                var attribs = []; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy