|
(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
![]() |
|
Alati teme | Način prikaza |
![]() |
#1 |
novi član
Na probnom radu
|
![]() Hello!
Evo standardnog conditional commenta za IE: Kôd:
<p><!--[if IE]> According to the conditional comment this is Internet Explorer<br /> <![endif]--> <!--[if IE 5]> According to the conditional comment this is Internet Explorer 5<br /> <![endif]--> <!--[if IE 5.0]> According to the conditional comment this is Internet Explorer 5.0<br /> <![endif]--> <!--[if IE 5.5]> According to the conditional comment this is Internet Explorer 5.5<br /> <![endif]--> <!--[if IE 6]> According to the conditional comment this is Internet Explorer 6<br /> <![endif]--> <!--[if IE 7]> According to the conditional comment this is Internet Explorer 7<br /> <![endif]--> <!--[if gte IE 5]> According to the conditional comment this is Internet Explorer 5 and up<br /> <![endif]--> <!--[if lt IE 6]> According to the conditional comment this is Internet Explorer lower than 6<br /> <![endif]--> <!--[if lte IE 5.5]> According to the conditional comment this is Internet Explorer lower or equal to 5.5<br /> <![endif]--> <!--[if gt IE 6]> According to the conditional comment this is Internet Explorer greater than 6<br /> <![endif]--> </p> Postoji li neki skript (PHP?) ili program (još ako ima za Linux - iha!) kome može da se prosledi HTML fajl (koji sadrži conditional comment) i "verzija" IE-a a da se kao rezultat dobije čist HTML koji odgovara toj verziji? Primer: ccomment.html: Kôd:
<p> <!--[if IE 5]> According to the conditional comment this is Internet Explorer 5<br /> <![endif]--> <!--[if IE 5.0]> According to the conditional comment this is Internet Explorer 5.0<br /> <![endif]--> <!--[if IE 5.5]> According to the conditional comment this is Internet Explorer 5.5<br /> <![endif]--> <!--[if IE 6]> According to the conditional comment this is Internet Explorer 6<br /> <![endif]--> </p> superskripta ccoment.html 5.5 i dobijem kao rezultat Kôd:
<p> According to the conditional comment this is Internet Explorer 5.5<br /> </p> Uz ovakav program mogao bih da vidim tačno šta koji browser stvarno "žvaće". Hvala unapred! |
![]() |
![]() |
![]() |
#2 |
član
Certified
|
![]() Mislim da to nećeš moći da izvedeš menjanjem http user agenta jer web browser verovatno na njih ne obraća pažnju prilikom procesiranja kondicionalnih komentara.
|
![]() |
![]() |
![]() |
#3 | |
novi član
Na probnom radu
|
![]() Citat:
Dakle treba mi nešto što radi po principu W3C validatora kome se može proslediti html sa conditional commentima i verzija browsera a kao izlaz dobiti kod onako kako ga određeni user agent vidi... |
|
![]() |
![]() |
![]() |
Alati teme | |
Način prikaza | |
|
|
![]() |
||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
Remove comments | cvele | PHP | 8 | 30. 01. 2008. 09:10 |
W3C redizajnirali validator | Dragan Babić | Opušteno | 1 | 25. 07. 2007. 22:00 |
Odlican validator service | ivanhoe | Web aplikacije, web servisi i software | 7 | 09. 01. 2007. 12:44 |
W3C Validator - ko je ovde lud? | ivanhoe | (X)HTML, JavaScript, DHTML, XML, CSS | 9 | 13. 09. 2006. 21:16 |
Text file regexp validator | Blood | Regular expression i htaccess | 10 | 13. 03. 2006. 13:57 |