in reply to Re: _new considered harmful
in thread _new considered harmful

Update: Oh! I think you meant "_new is certainly harmful", instead of "_blank is certainly harmful". Ignore the rest of this post if so.

Why do you say it's not valid XHTML? According to the XHTML DTD, the value of target is a NMTOKEN. _blank is a valid NMTOKEN.

Nmtoken ::= (NameChar)+ NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | +Extender

Futhermore, it's not list as a difference with HTML 4, and HTML 4 explicitely lists _blank as a valid frame target name. (_new, on the other hand, is not listed.)

Replies are listed 'Best First'.
Re^3: _new considered harmful
by wazoox (Prior) on Oct 03, 2006 at 13:37 UTC
    Check with the w3c validator : any xhtml page containing
    <a href="foo" target="_blank">
    will be dubbed as non valid XHTML strict. Well, actually that's the "target" attribute that's invalid, not "_blank".
      It's defined in the Frameset DTD. Frames are valid XHTML, but they have in a seperate DTD since they have affect presentation.
        Interesting. How do you define a frameset that will pass the w3c validator?