in reply to Re: RegEx for incorrectly closed HTML attribute?
in thread RegEx for incorrectly closed HTML attribute?

The first is definitely not:
HTML 4.01
XHTML 1.0

However, it will still display correctly in browsers. A better breaking example might be: <a href = li'nk>FOO</a>

Replies are listed 'Best First'.
Re: RegEx for incorrectly closed HTML attribute?
by Abigail-II (Bishop) on Dec 01, 2002 at 16:17 UTC
    The first link says:
    In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them.

    Which is exactly what I was referring to. In

    <a href = link>foo</a>

    the attribute value contains only letters, and doesn't need quotes. Remember that HTML is an SGML application, and not an XML application.

    Abigail