[wp-hackers] Use of _blank in wp-admin

Florian Feldhaus florian.feldhaus at udo.edu
Sat Mar 22 12:18:18 GMT 2008


Knut-Olav Hoven schrieb:
> On Saturday 22 March 2008 12:33:49 Viper007Bond wrote:
>   
>> No, it validates just fine, if you use it right, i.e. <br />
>>
>> In XHTML, all non-closing tag elements (br, img, link, meta, etc.) need to
>> have a slash before the closing bracket.
>>
>> <img src="http://site.com/image.jpg" alt="My Image" />
>>     
>
> Most browsers interpret both these ways of writing the tag the same way, but 
> <br> does not validate, <br /> does. It's a big different.
>
> Following the XHTML standard is pretty black and white, either it validates or 
> it does not.
>
> If it does not validate, it's not XHTML anymore, it's something inbetween 
> HTML4 and XHTML and it's up to the browser to decide what to do with it.
>   
What about HTML5 would that solve the problem(s)?
>   
>> On Sat, Mar 22, 2008 at 4:10 AM, Knut-Olav Hoven <hovenko at linpro.no> wrote:
>>     
>>> On Saturday 22 March 2008 11:45:42 Viper007Bond wrote:
>>>       
>>>> It was never an intended functionality in the first place really and it
>>>> still works under XHTML, it just breaks validation.
>>>>         
>>> The <br> tag also works under XHTML, but it does not validate as XHTML,
>>> which
>>> means it is not XHTML, which means you should probably use the HTML 4
>>> doctype
>>> instead.
>>>
>>>       
>>>> On Sat, Mar 22, 2008 at 3:24 AM, Tim Kissane <tim at timbury.net> wrote:
>>>>         
>>>>> I use many browsers to test page design, but Firefox and Opera are my
>>>>> main personal use choices. I have set the preferences in each to open
>>>>> tabs rather than windows (the default on Opera), so this is not an
>>>>> annoyance at all.
>>>>>
>>>>> Why has the target parameter has been dropped? I sometimes want to
>>>>> force a visitor to a page to open a link in a new window/tab, rather
>>>>>           
>>> than
>>>
>>>       
>>>>> replace the page containing the link. It is ridiculous for the
>>>>> authors
>>>>>           
>>> of
>>>
>>>       
>>>>> the xhtml standards to remove this functionality.
>>>>>
>>>>> Ah, but I digress... ;-)
>>>>>
>>>>> WP rawks!
>>>>>
>>>>> Tim K.
>>>>>
>>>>> --
>>>>> Tim Kissane
>>>>> Timbury Computer Services
>>>>> http://timkissane.com/
>>>>> http://timbury.net/
>>>>> 732.604.3817
>>>>> =========================
>>>>> "More hideous crimes have been committed in the name of obedience
>>>>> than
>>>>>           
>>> in
>>>
>>>       
>>>>> the name of rebellion." -- CP Snow
>>>>>
>>>>> Mahmoud Al-Qudsi wrote:
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> One would think that with all the recent standards-based discussion
>>>>>>             
>>> and
>>>
>>>       
>>>>> all, WP wouldn't be using target="" attributes on links; but I was
>>>>> surprised to find that certain links in the admin center use _blank.
>>>>>
>>>>>           
>>>>>> This is annoying on more than one level - seeing as all browsers
>>>>>> support
>>>>>>             
>>>>> tabs, _blank will open the link in a new Window (except in Opera,
>>>>>           
>>> which
>>>
>>>       
>>>>> fortunately intercepts _blank calls and converts them to new tabs)
>>>>>           
>>> which
>>>
>>>       
>>>>> is pretty annoying behavior for us tab-lovers.
>>>>>
>>>>>           
>>>>>> More importantly, to the best of my knowledge _blank has been
>>>>>> phased out
>>>>>>             
>>>>> of the HTML standards...
>>>>>
>>>>>           
>>>>>> Any idea why we're using them?
>>>>>>
>>>>>> -MQ
>>>>>>             
>>>>> _______________________________________________
>>>>> wp-hackers mailing list
>>>>> wp-hackers at lists.automattic.com
>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>           
>>> --
>>> Knut-Olav Hoven
>>> Systemutvikler               mob: +47 986 71 700
>>> Linpro AS                    http://www.linpro.no/
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>       
>
>
>
>   



More information about the wp-hackers mailing list