Skip to content

Add missing <meta charset="UTF-8"> and make HTML standard#58

Merged
raphinesse merged 5 commits into
apache:masterfrom
mosabab:patch-2
Dec 4, 2019
Merged

Add missing <meta charset="UTF-8"> and make HTML standard#58
raphinesse merged 5 commits into
apache:masterfrom
mosabab:patch-2

Conversation

@mosabab

@mosabab mosabab commented Dec 4, 2019

Copy link
Copy Markdown
Contributor
  • Add missing <meta charset="UTF-8"> to <head> section.
  • Remove unnecessary codes to meet the standard coding for HTML, for e.g.: type="text/css", type="text/javascript". Because those types is default in HTML5
  • Adding user-scalable=no to meta viewport to prevent users to scale webview, because by default, mobile apps should not allow users to scale the main webview.

Platforms affected

Motivation and Context

Description

Testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

- Remove unnecessary codes meet the standard coding for html.
- Adding `user-scalable=no` to meta `viewport` to prevent users to scale webview, because it is work as an standard app.
- Add missing `<meta charset="UTF-8">` to index.html
- Add missing `<meta charset="UTF-8">` to index.html
@mosabab mosabab changed the title Optimize index.html and remove unnecessary codes Add missing <meta charset="UTF-8"> and make HTML standard Dec 4, 2019

@raphinesse raphinesse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, except for the charset issue I commented on.

Comment thread template_src/www/index.html Outdated
@mosabab

mosabab commented Dec 4, 2019

Copy link
Copy Markdown
Contributor Author

Looks good now

@raphinesse raphinesse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good now. Thank you very much for your contribution! 🥇

@mosabab

mosabab commented Dec 4, 2019

Copy link
Copy Markdown
Contributor Author

Thank you my friend :)

@mosabab

mosabab commented Dec 4, 2019

Copy link
Copy Markdown
Contributor Author

Anyway lowercase or uppercase not affect the code.

And if you wrote it in small letter, it also work.
But in html5 standard
The charset utf defined it in capital UTF-8

Also in xml charset default written in UTF-8

Also for doctype html
If you write it in :
DOCTYPE html
Or
doctype html

It is the same, but the default is DOCTYPE html

You can refer to those standards from w3.org, or w3schools

Regards

@raphinesse raphinesse merged commit 1316332 into apache:master Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants