Skip to content

cshtml: fix HTMLLint 🌵  #178

@jamacku

Description

@jamacku

Discovered by htmllint in:

It's good practice to use double quotes in HTML instead of single quotes.

Error: -03 08:38:32 [ERROR]   Found errors when linting HTML. Exit code: 1.
2024-05-03 08:38:32 [INFO]   Command output for HTML:
------
Config loaded: /action/lib/.automation/.htmlhintrc
/github/workspace/docs/example.html
   L1 |<?xml version='1.0' encoding='utf-8'?>
       ^ Special characters must be escaped : [ < ]. (spec-char-escape)
   L1 |<?xml version='1.0' encoding='utf-8'?>
                                            ^ Special characters must be escaped : [ > ]. (spec-char-escape)
   L1 |<?xml version='1.0' encoding='utf-8'?>
       ^ Doctype must be declared first. (doctype-first)
   L2 |<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
       ^ Invalid doctype. Use: "<!DOCTYPE html>" (doctype-html5)
   L3 |<html xmlns='http://www.w3.org/1999/xhtml'>
            ^ The value of attribute [ xmlns ] must be in double quotes. (attr-value-double-quotes)
   L5 |<body style='background: white;'>
            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L8 |<pre style='white-space: pre-wrap;'>
           ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L9 |<a name='def1'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
         ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L9 |<a name='def1'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                      ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L9 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def1'>[#def1]</a>
                                                  ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L11 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    4|   # Quoting</span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L11 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    4|   # Quoting</span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L12 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    5|   # =======</span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L12 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    5|   # =======</span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L13 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L13 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L14 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    7|-&gt;  echo $1                    ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L14 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    7|-&gt;  echo $1                    ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L15 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L15 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L16 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    9|    v=&apos;--verbose=&quot;true&q...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L16 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    9|    v=&apos;--verbose=&quot;true&q...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L17 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L17 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L19 |<a name='def2'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
          ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L19 |<a name='def2'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                       ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L19 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def2'>[#def2]</a>
                                                   ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L21 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    5|   # =======</span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L21 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    5|   # =======</span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L22 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L22 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L23 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L23 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L24 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    8|-&gt;  rm &quot;~/my file.txt&quot...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L24 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    8|-&gt;  rm &quot;~/my file.txt&quot...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L25 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    9|    v=&apos;--verbose=&quot;true&q...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L25 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    9|    v=&apos;--verbose=&quot;true&q...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L26 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L26 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L27 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L27 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L29 |<a name='def3'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
          ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L29 |<a name='def3'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                       ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L29 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def3'>[#def3]</a>
                                                   ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L31 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L31 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L32 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L32 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L33 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L33 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L34 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L34 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L35 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L35 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L36 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L36 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L37 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L37 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L39 |<a name='def4'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
          ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L39 |<a name='def4'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                       ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L39 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def4'>[#def4]</a>
                                                   ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L41 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L41 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L42 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L42 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L43 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L43 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L44 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L44 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L45 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L45 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L46 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L46 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L47 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L47 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L49 |<a name='def5'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
          ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L49 |<a name='def5'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                       ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L49 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def5'>[#def5]</a>
                                                   ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L51 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L51 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L52 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L52 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L53 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L53 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L54 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L54 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L55 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L55 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L56 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L56 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L57 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L57 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L59 |<a name='def6'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
          ^ The value of attribute [ name ] must be in double quotes. (attr-value-double-quotes)
   L59 |<a name='def6'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href =...
                                       ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L59 |...FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def6'>[#def6]</a>
                                                   ^ The value of attribute [ href ] must be in double quotes. (attr-value-double-quotes)
   L61 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L61 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    6|   </span></span>
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L62 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L62 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    7|    echo $1                       ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L63 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L63 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>    8|    rm &quot;~/my file.txt&quot;  ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L64 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L64 |<span style='color: #00C0C0;'>#<span style='color: #000000;'>    9|-&gt;  v=&apos;--verbose=&quot;tru...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L65 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L65 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   10|   # touch $@                     ...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L66 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L66 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   11|   # echo &apos;Path is $PATH&apos...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L67 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
             ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)
   L67 |<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'>   12|   # trap &quot;echo Took ${SECOND...
                                            ^ The value of attribute [ style ] must be in double quotes. (attr-value-double-quotes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions