Hi folks,

after some tinkering and research here are my findings

+) on the project I'm currently working on there also mobile clients in addition to the plain web client

+) those mobile clients expects various page markups, e.g. WML or XHTML

+) the pages generated for XHTML return "application/vnd.wap.xhtml+xml" as content type and also declare <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd";>

+) AFAIK this is valid but limited XHTML but HTMLUnit did not accept "application/vnd.wap.xhtml+xml" as HTML Page and reported an error

+) since a very few things are really simpler when you are a developer we added an optional HTTP Header enforcing the content type of the result page to be "application/xhtml+xml" even it is XHTML for mobile clients

it now returns

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd";>
  <html xmlns="http://www.w3.org/1999/xhtml";>

+) I got my first few tests running with this hack and it works


Cheers,

Siegfried Goeschl
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to