html not formatted after uppercase unformatted tag, e.g. <B> #160

Closed
jk2 opened this Issue Nov 22, 2012 · 0 comments

Projects

None yet

2 participants

@jk2

E.g. the following is styled as below

<TABLE>
    <TR>
        <TD>
             <B>Test</B></TD></TR></TABLE>

Reason: Code assumes that end tag is in lowercase.

Fix: In beautify-html.js

303c303
<       if (orig_tag && orig_tag.indexOf(delimiter) != -1) {
---
>       if (orig_tag && orig_tag.toLowerCase().indexOf(delimiter) != -1) {
340c340
<       } while (content.indexOf(delimiter) == -1);
---
>       } while (content.toLowerCase().indexOf(delimiter) == -1);
@einars einars added a commit that closed this issue Nov 23, 2012
@einars einars HTML assumed end tags are in lowercase (fix #160)
@jk2:

<TABLE>
    <TR>
        <TD>
             <B>Test</B></TD></TR></TABLE>

Reason: Code assumes that end tag is in lowercase.
11d0476
@einars einars closed this in 11d0476 Nov 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment