Ticket #5224: 5224_2.patch

File 5224_2.patch, 564 bytes (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/core/htmlparser.js

     
    172172                                if ( ( tagName = parts[ 3 ] ) )
    173173                                {
    174174                                        tagName = tagName.toLowerCase();
     175
     176                                        // There are some tag names that can break things, so let's
     177                                        // simply ignore them when parsing. (#5224)
     178                                        if ( /="/.test( tagName ) )
     179                                                continue;
     180
    175181                                        var attribs = {},
    176182                                                attribMatch,
    177183                                                attribsPart = parts[ 4 ],
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy