po**@sat.inesc-id.pt wrote:
What's the property/value I need to set in css for A to mimic the
results of
<a href="..." target="_new">...</a>?
There isn't one in CSS up to version 2.1.
target="_new" is not strict xml1.0, how to do it in css?
target="_new" is wrong. See
http://www.w3.org/TR/html401/types.h...e-frame-target
Browsers will correct your error in one of three ways:
1. Ignore the target attribute
2. Treat it as target="new"
3. Treat it as target="_blank"
The difference between the last two will become apprarent if you have
multiple links with the same target attribute. In case (2) the same
window will be reused (so there are only every two windows) whilst in
case (3) a new window will be created for every link.
I guess that xml1.0 is a typo for XHTML 1.0?
This is NOT an HTML vs XHTML issue. The target attribute isn't in HTML
4 Strict either.
You have four options:
1. Don't open new windows, leave that up to the user
2. Use a Transitional version of HTML or XHTML instead
3. Use JavaScript instead
4. Don't worry about it not validating
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>