Topic: Opening links in another windows
Can you restore this optional feature like in version 1.1.xx ("target=_blank" tag) ?
You are not logged in. Please login or register.
PunBB Forums → Feature requests → Opening links in another windows
Can you restore this optional feature like in version 1.1.xx ("target=_blank" tag) ?
open include/parser.php
line 275:
return '<a href="'.$full_url.'">'.$link.'</a>';
change to
return '<a href="'.$full_url.'" target="_blank">'.$link.'</a>';
line 286:
$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
change to
$img_tag = '<a href="'.$url.'" target="_blank"><'.$lang_common['Image link'].'></a>';
Which, I believe, isn't valid markup
http://validator.w3.org doesn't have any problems with it
Mmm, I do remember something like that being a problem, let me search
http://punbb.org/forums/viewtopic.php?id=6355
Actually it is really both reasons. The target attribute is not XHTML compliant and the reason it is not compliant is that browser behaviour is not something that is the business of markup or css; thats what javascript is for. There is another reason and that is there are accessability issues with opening links in new windows. I think you will find that during the next couple of years opening links in new windows will become something of a rarity.
It isn't valid under the XHTML 1.0 Strict doctype. XHTML 1 Strict doesn't allow the target attribute in any shape or form. Actually, it isn't even valid under HTML 4.01 Strict. If you want to know whats allowed in strict compared to transitional, see here
http://liorean.web-graphics.com/xhtml/c … trict.html
If your page validates with the target attribute then its a bug in the validator, it has a few.
bug in the validator in that case, i tested it when Smarty's posted that.
Well, as said above, it isn't supported in XHTML Strict, but in XHTML 1.0 Framset it is.
The reason for this is to let the users have control over their own webbrowsers.
it isn't supported in XHTML Strict
ah maybe that was it, i think i tested as loose.
PunBB Forums → Feature requests → Opening links in another windows
Powered by PunBB, supported by Informer Technologies, Inc.