Achshar
Achshar

Reputation: 5243

html desktop notification file complete html?

HTML5 desktop notifications have an HTML option where we can show an HTML page inside a notification. What I was wondering was, should the page to be shown inside the notification be a 'complete' html page or just a bunch of nodes?

By 'complete' I mean, should it have a doctype and head, body, and html tags? What about external JavaScript and CSS files? I have been showing it as a bunch of nodes for sometime and it does not seem to have any problems that way, but now as the app develops, the page is getting more sophisticated and I now need to move the CSS and JavaScript to their own external files.

Upvotes: 2

Views: 321

Answers (1)

Muhammad Hasan Khan
Muhammad Hasan Khan

Reputation: 35126

According to W3C specification it is a separate window and therefore the content has to be complete html document

Upvotes: 2

Related Questions