|
|
| version 1.9, 2004/02/20 10:57:55 | version 1.114, 2005/12/19 12:24:57 |
|---|---|
| Line 1 | Line 1 |
| @main[] | |
| $request:charset[UTF-8] | |
| #$response:charset[UTF-8] | |
| $response:charset[windows-1251] | |
| $response:content-type[$.value[text/html]$.charset[$response:charset]] | |
| $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?> | |
| <doc> | |
| исходный | |
| </doc> | |
| }] | |
| $xdoc[^xdoc.transform[_bug.xsl]] | |
| ^xdoc.string[] | |
| #^xdoc.save[_bug-koi.xml;$.encoding[koi8-r]] | |
| #^xdoc.save[_bug-in-request-charset.xml] | |
| <hr> | |
| $request:charset/$response:charset | |
| @main[] | |
| ^try{ | |
| ^mustfail[] | |
| }{ | |
| ^if($exception.type eq xml){ | |
| failed, that's OK | |
| $exception.handled(1) | |
| } | |
| } | |
| @mustfail[] | |
| $dom_from_disk[^xdoc::create[input]] | |
| $dom_created_in_air[^xdoc::create[doc]] | |
| ^dom_created_in_air.documentElement.appendChild[$dom_from_disk.documentElement] | |
| ^show_xdoc2[$dom_created_in_air] | |
| @show_xdoc2[xdoc] | |
| <pre>^taint[html][^xdoc.string[ | |
| $.method[html] | |
| ]] | |
| </pre> |