Ticket #3335 (closed feature: fixed)
<meta name="viewport"> has irregular contents in the content attribute
| Reported by: | marcjansen | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | general | Version: | 2.10 |
| Keywords: | Cc: | ||
| State: | Pullup |
Description
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.

