Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: side effects "Enforce proper nesting of HTML"

by tye (Sage)
on Jun 05, 2017 at 04:15 UTC ( [id://1192141] : note . print w/replies, xml ) Need Help??


in reply to side effects "Enforce proper nesting of HTML"

Because many browsers have decided to treat </br> as if it were something useful like <br />. The current version of our HTML parsing code does not go quite so far in assigning meaning to nonsense.

- tye        

Replies are listed 'Best First'.
Re^2: side effects "Enforce proper nesting of HTML"
by LanX (Saint) on Jun 05, 2017 at 10:25 UTC
    Shouldn't illegal markup always be rejected?

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      Be conservative in what you do, be liberal in what you accept from others.
      —Postel's law

        I should have clarified that my motivation was security not a purist ideology.

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

      I would support it. I would support removing deprecated HTML as well.

      No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
      Lady Aleena
        At the time PM was drafted, HTML was still evolving, so I'm not surprised.

        Anyway my question was just a question, ie seeking better understanding and not a call for action which needs "support".

        Not sure if my English is flawed here ...

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!