Bug: INS/DEL in block context (1.04b)

John Gruber gruber at fedora.net
Thu Apr 29 18:30:58 EDT 2004


european bob <bob at wolfwall.com> wrote on 04/28/04 at 4:54p:

> On Wed, 2004-04-28 at 16:48, Aaron Swartz wrote:
> > my $block_tag_re = qr/p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script/;
> > 
> > Just add |ins|del to it.
> 
> The problem is that;
> 
>   <ins>This is <i>new text</i>!</ins>
> 
> isn't a block level tag, and therefore cannot appear below a <body> tag.

I believe that is incorrect. The following is a valid XHTML 1.0
Strict document:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Block-level "ins"</title>
    </head>
    <body>
    
    <ins><i>Hello.</i></ins>
    
    </body>
    </html>

It passes through both BBEdit's syntax checker and the W3C's
validator.

-J.G.


More information about the Markdown-discuss mailing list