[webkit-dev] Default viewport value on WAP DTDs

Kenneth Rohde Christiansen kenneth.christiansen at gmail.com
Fri May 4 09:39:13 PDT 2012

This is not supporting XHTML-MP, as we are not implementing anything
special to support it. We are basically showing the content as it was
HTML5 and that solves most real use-cases. Injecting a proper viewport
configuration makes it also layout properly.

Unfortunately most unknown mobile browsers tend to get lots of
XHTML-MP. Heck, we even get that for google.com on the Nokia N9 :-( as
well as other high profile sites.

This makes the sites render acceptable, until we can advocate the
sites to accept our user agent, something which we haven't always had
luck with. Google for one didn't want to provide us the Tier 1 site of
google.com on the N9, even though it works a lot better than the
XHTML-MP version we are being served. I don't see this situation
change any time soon.


On Fri, May 4, 2012 at 6:31 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> I don't think we want to support XHTML-MP. We finally got rid of WML after
> years of discussions and attempts.
> If we were to accept this patch, I'd like to see a broader discussion about
> whether we want to support XHTML-MP or not first.
> - Ryosuke
> On Thu, May 3, 2012 at 1:46 PM, Hugo Parente Lima <hugo.lima at openbossa.org>
> wrote:
>> Hi,
>> I was pointed to trigger a discussion here about the patch:
>> https://bugs.webkit.org/show_bug.cgi?id=85425
>> I'll try to resume to issue:
>> If no viewport is specified webkit uses the magic and well know value of
>> 980
>> pixels for the canvas width, this value is very good for most websites
>> developed for desktop usage, on the other side there are the websites[1]
>> developed for small screen mobile devices. Those websites will look pretty
>> ugly on a 980 pixels canvas, many of those websites uses a different DTD
>> like:
>> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
>> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
>> The proposed patch changes the magic value of 980 pixels to "device-width"
>> when this doctype is found causing the website to render nicely if the
>> device
>> screen is small, i.e. don't show the website in a 980 pixels canvas zoomed
>> out
>> to fit the <980 pixels screen.
>> Some webkit browsers already use this hack, like the N9 browser and if I
>> understood correctly by the Zalan comments on the bug, the iOS Safari too.
>> Comments about why the viewport width should or shouldn't be changed by
>> the
>> doc type is appreciated. Thanks!
>> Regards
>> Hugo Parente Lima
>> [1] http://m.yahoo.com; http://www.google.com (using a user agent like:
>> "Nokia
>> 7110/1.0")
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Kenneth Rohde Christiansen
Senior Engineer
Nokia Mobile Phones, Browser / WebKit team
Phone  +45 4093 0598 / E-mail kenneth at webkit.org

http://codeposts.blogspot.com ﹆﹆﹆

More information about the webkit-dev mailing list