Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect validation of "src" key in the "icons" array #40

Open
dandv opened this issue Oct 21, 2016 · 1 comment
Open

Incorrect validation of "src" key in the "icons" array #40

dandv opened this issue Oct 21, 2016 · 1 comment

Comments

@dandv
Copy link

dandv commented Oct 21, 2016

The following manifest will validate successfully:

{
  "name": "My Progressive Web App",
  "short_name": "My PWA",
  "icons": [{
        "src": "images/touch/icon-72x72.png",
        "sizes": "72x72",
        "type": "image/png"
      }, {
        "href": "images/touch/icon-96x96.png",
        "sizes": "96x96",
        "type": "image/png"
      }, {
        "src": "images/touch/icon-128x128.png",
        "sizes": "128x128",
        "type": "image/png"
      }],
  "background_color": "#40455f",
  "display": "standalone",
  "theme_color": "#53b50a",
  "start_url": "/?homescreen=1"
}

Note the second element of the icons array. The key "href" should be "src". This led to a hard to debug issue because of this bug in Chrome.

CC @slightlyoff

@marcoscaceres
Copy link
Contributor

We should be more aggressive about warning about unprefixed nonstandard keys.

On 21 Oct. 2016, at 11:32 am, Dan Dascalescu [email protected] wrote:

The following manifest will validate successfully:

{
"name": "Trulia Progressive Web App",
"short_name": "Trulia PWA",
"icons": [{
"src": "images/touch/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
}, {
"href": "images/touch/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
}, {
"src": "images/touch/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
}],
"background_color": "#40455f",
"display": "standalone",
"theme_color": "#53b50a",
"start_url": "/?homescreen=1"
}
Note the second element of the icons array. The key "href" should be "src". This led to a hard to debug issue because of this bug in Chrome.

CC @slightlyoff


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants