[OpenLayers-Trac] [OpenLayers] #3335: <meta name="viewport"> has irregular contents in the content attribute

OpenLayers trac-20090302 at openlayers.org
Wed Jun 1 12:50:24 EDT 2011


#3335: <meta name="viewport"> has irregular contents in the content attribute
------------------------+---------------------------------------------------
 Reporter:  marcjansen  |       Owner:                        
     Type:  feature     |      Status:  new                   
 Priority:  minor       |   Milestone:  2.12 Release          
Component:  general     |     Version:  2.10                  
 Keywords:              |       State:  Awaiting User Feedback
------------------------+---------------------------------------------------
 According to http://wiki.whatwg.org/wiki/MetaExtensions and the parsing
 algorithm here http://dev.w3.org/csswg/css-device-adapt/#parsing-algorithm
 (at least how I read it) the content attribute of {{{<meta
 name="viewport">}}} should use the comma to separate the single
 properties.

 We currently use the semicolon to separate the properties, which leads to
 errors in Chrome:

 {{{
 Viewport argument value "device-width;" for key "width" not recognized.
 Content ignored.
 }}}

 or

 {{{
 Viewport argument value "1.0;" for key "initial-scale" was truncated to
 its numeric prefix.
 }}}

 The attached patch suggests replacing the  {{{;}}}-separator with {{{,}}}
 and removing the final semicolon in the content-attribute of the the meta-
 tag completely. The notices in Chrome are gone with the patch applied and
 the examples still look OK to me.

 It would be great if someone could check the examples on mobile devices.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3335>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list