Ashesh
Ashesh

Reputation: 3599

No input validation in node webkit (nw.js) based app

This is my HTML code

<input type="text" required="" placeholder="Username">

which basically make the username necessary for form submission and displays a tooltip for the field if left black on submission.

The HTML Page works fine, output: enter image description here


However on running the genrated app.exe file, there are no messages, output:

enter image description here

My Question: Is this a Node Webkit limitation? Are there any workarounds?

Upvotes: 0

Views: 469

Answers (1)

Timothy Gu
Timothy Gu

Reputation: 3865

This IS a nw.js limitation.

The tooltip is generated by Chrome the browser in your former image, but nw.js does not have the same version as Chrome as you are using, so its support for HTML5 stuff like this is expected to be sub-par.

I can't find any references for this claim, but this is most likely what's happening.

Upvotes: 1

Related Questions