in reply to Ideas for PerlMonks Markup support in an editor

Which browser are you implementing? ;-) On firefox, that first one doesn't do what it says it does. It actually renders as:

italic bold italic

bold

still bold. normal

Firefox seems to enforce nesting. Which, as I recall (perhaps incorrectly), is the way that the HTML standards have always described things. Not closing tags in reverse order of them being opened cause "undefined behaviour," which, as most computer programming geeks should know, means that it could format your hard disk. Sounds like your browser has chosen to implement the undefined behaviour as "continue the text formatting" while Firefox has chosen to implement it as "automatically close off tags that should have been closed." Neither one is wrong as per my recollection of the standard.

  • Comment on Re: Ideas for PerlMonks Markup support in an editor

Replies are listed 'Best First'.
Re^2: Ideas for PerlMonks Markup support in an editor
by GrandFather (Saint) on Aug 06, 2006 at 18:43 UTC

    Interesting. I'm using Firefox - currently 1.5.0.6 and it behaves as I described and expected.

    Subsequent to posting it occured to me I could test things such as spoiler tags in my private pad where I independently discovered the results ikegami provided (thought I'd leave my comment stand for others to have the pleasure of correcting though :).

    I'm strongly inclined to follow ikegami and ww's suggestion that formating be allowed across PM special block markup (code, readmore and spoiler tags), and that it should otherwise be coerced to correctly nested elements without non-block level elements spanning block level elements.


    DWIM is Perl's answer to Gödel
Re^2: Ideas for PerlMonks Markup support in an editor (blame)
by tye (Sage) on Aug 07, 2006 at 01:39 UTC
    Firefox seems to enforce nesting.

    PerlMonks can enforce nesting and Tanktalus currently has PerlMonks configured to do that for him. So it is likely PerlMonks and not FireFox that is doing this enforcement, given how others are not seeing FireFox act as claimed.

    - tye