Changes between Version 24 and Version 25 of week2+

Show
Ignore:
Timestamp:
06/24/08 12:35:42 (5 years ago)
Author:
fbatard
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • week2+

    v24 v25  
    2323</routine> 
    2424}}} 
     25Another idea proposed by Jean-Gui would be to create a '''switch''' keyword to deal with doctypes and mediatypes. This way we could create different routine depending on the type we find. Therefore the condition would be in the if tag :  
     26{{{ 
     27 <if observer="rencardeur" test="p[class='doctype'] eq '-//W3C//DTD XHTML 1.0 Transitional//EN'"> 
     28 OR 
     29<switch observer="rencardeur" result="passed"> 
     30     <case doctype="whatever">...</case> 
     31     <case media="wtf.smil">..</case> 
     32</switch> 
     33}}}  
    2534[[BR]][[BR]] 
    2635'''A cond will be placed here to be used in if command. It returns a boolean :'''[[BR]]