Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
molant d041dc0c70 Fix: Upgrade links to HTTPs 2018-09-18 09:39:38 -07:00
Cătălin Mariș 28af5f6f8a
Make minor consistency improvements 2017-06-02 13:10:06 +03:00
Cătălin Mariș 9ad422a08d
Add `newline` at the end of text file
Under UNIX-like OSes, a text file consists of a series of lines, each
of which ends with a `newline` character (`\n`). A file that is not
empty and does not end with a `newline` is therefore considered not to
be a text file.

Because of this, utilities that are supposed to operate on text files
may not cope well with files that don't end with a `newline` (e.g.: they
might ignore the text after the last `newline`).

Adding the `newline` character at the end of the file ensures that users
won't encounter any odd behavior when using it.

Reference/Source: http://unix.stackexchange.com/a/18789.
2017-04-10 10:21:43 +03:00
Cătălin Mariș d925bdae2b
Use `lang="en-us"` consistently
Fix MicrosoftEdge/Demos#337
2017-01-04 13:14:28 +02:00
Cătălin Mariș 14acd4d22a
Losslessly optimize image 2017-01-03 17:33:27 +02:00
Cătălin Mariș 76bc90ad61
Add charset declaration where missing
Note:

 The charset declaration should be specified as early
 as possible, and must be included completely within
 the first 1024 bytes of the document.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

See also:

  https://www.w3.org/International/questions/qa-html-encoding-declarations.en
  https://html.spec.whatwg.org/multipage/semantics.html#charset
  https://code.google.com/archive/p/doctype-mirror/wikis/ArticleUtf7.wiki
2016-12-22 15:59:27 +02:00
Cătălin Mariș 6e14a36c78
Remove redundant `type` attributes
The HTML specification defines default values for the `type` attribute
for the `<script>`¹ and `<style>`² elements.

Browsers follow the specification so, unless a different value than the
default is needed, the `type` attribute can be omitted, being redundant.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type

   " Omitting the attribute, or setting it to a JavaScript
     MIME type, means that the script is a classic script,
     to be interpreted according to the JavaScript Script
     top-level production. Classic scripts are affected by
     the charset, async, and defer attributes. __Authors
     should omit the attribute, instead of redundantly giving
     a JavaScript MIME type.__ "

  https://html.spec.whatwg.org/multipage/scripting.html#prepare-a-script

   " 6. If either:

        * the `script` element has a `type` attribute and its
          value is the empty string, or
        * the `script` element has no `type` attribute but it
          has a `language` attribute and that attribute's value
          is the empty string, or
        * the `script` element has neither a `type` attribute
          nor a `language` attribute, then

        ...let the script block's type string for this script
        element be `text/javascript`. "

² https://html.spec.whatwg.org/multipage/semantics.html#attr-style-type

  " The default value for the type attribute, which is used
    if the attribute is absent, is `text/css`. "
2016-12-15 15:14:58 +02:00
Cătălin Mariș b283b3210c
Add `lang` attribute to `<html>` elements
Ref: http://blog.adrianroselli.com/2015/01/on-use-of-lang-attribute.html

Close #211
2016-12-14 12:23:06 +02:00
molant fbef8c5b1f Making all links https 2015-09-08 10:13:10 -07:00
molant a4a9be82fb Adding compat inspector demo 2015-08-22 09:21:28 -07:00