Changes between Version 24 and Version 25 of week2+
- Timestamp:
- 06/24/08 12:35:42 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
week2+
v24 v25 23 23 </routine> 24 24 }}} 25 Another 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 }}} 25 34 [[BR]][[BR]] 26 35 '''A cond will be placed here to be used in if command. It returns a boolean :'''[[BR]]
