Ticket #3036: 3036.patch

File 3036.patch, 1.7 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/core/htmlparser.js

     
    1818
    1919(function()
    2020{
    21         var attribsRegex        = /([\w:]+)\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+))?/g,
     21        var attribsRegex        = /([\w:]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
    2222                emptyAttribs    = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};
    2323
    2424        CKEDITOR.htmlParser.prototype =
  • _source/tests/plugins/htmldataprocessor/htmldataprocessor.html

     
    9090                                assert.areSame( '<p class="MsoNormal"><b><i><span lang="EN-US"><o:p>Test</o:p></span></i></b></p>', getDataProcessor().toDataFormat( element.getHtml() ) );
    9191                },
    9292
     93                test_toDataFormat_ticket_3036_1 : function()
     94                {
     95                        assert.areSame( '<input autocomplete="off" checked="checked" type="checkbox" />',
     96                                getDataProcessor().toDataFormat( '<INPUT type="checkbox" CHECKED  autocomplete=off>' ) );
     97                },
     98
     99                test_toDataFormat_ticket_3036_2 : function()
     100                {
     101                        assert.areSame( '<input autocomplete="off" type="checkbox" unknown="" />',
     102                                getDataProcessor().toDataFormat( '<INPUT type="checkbox" UNKNOWN  autocomplete=off>' ) );
     103                },
     104
    93105                name : document.title
    94106        };
    95107})() );
    96108
     109//window.onload = function()
     110//{
     111//      testCase.test_toDataFormat_ticket_3036();
     112//}
     113
    97114        //]]>
    98115        </script>
    99116</head>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy