Changes between Initial Version and Version 1 of Ticket #13644, comment 4


Ignore:
Timestamp:
Aug 17, 2015, 3:00:36 PM (9 years ago)
Author:
Szymon Cofalik
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13644, comment 4

    initial v1  
    22
    33Here is a description why the bug happens:
    4 1) In htmlparser we use a pretty sophisticated regular expression that finds tag openings.
    5 2) When the algorithm finds `<style>` tag, it looks further into code, looking for closing tag, but it finds `<9 </style>` instead.
    6 3) Algorithm never finds closing tag for `<style>`.
     41. In htmlparser we use a pretty sophisticated regular expression that finds tag openings.
     52. When the algorithm finds `<style>` tag, it looks further into code, looking for closing tag, but it finds `<9 </style>` instead.
     63. Algorithm never finds closing tag for `<style>`.
    77
    88If `<9` was a part of normal html code this won't be a bug but just invalid html code. Unfortunately, in `<style>` tag, in a comment, it is valid.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy