Skip to content
Snippets Groups Projects
Commit ff1f6189 authored by Pavol Otto's avatar Pavol Otto
Browse files

added notes for developers (in slovak language)

parent 8b4aa876
No related merge requests found
- pre validator je stranka urcena jednoznacne jej url,
ale ak pre danu url zavisi vrateny obsah este aj na susienkach,
tak s tymto validator nepocita
===============================
_____ ___ ___ ___
|_ _/ _ \| \ / _ \
| || (_) | |) | (_) |
|_| \___/|___/ \___/
===============================
- cyklicke redirecty, sme schopni detekovat v kazdom pripade? selenium / head request
ZATIAL NEIMPLEMENTUJ:
- -q/-a implementuj ?... je/nie je ina stranka
- kontroluj, ci Server: je len Apache,... alebo aj s verziou => vrat security warning
podobne pre X-Powered-By: php,... by nemalo byt vobec
- validuj aj css <style> v html dokumente
- org.apache.commons.io.ByteOrderMark pouzi v util.MimeTypeStringDecoder
- chybove hlasky dat pohromade a chyby budu len konstanty; a hlavne sa to bude dat prekladat
- premysliet moznost kontroly, ak nie je nijak definovany charset a nie je ciste ascii, tak vypisat varovanie
- Content-Location hlavicka
- po stlaceni ctrl+c skonci slusne, vypis najdene chyby do toho momentu
- anchor: ak je odkaz na nejaku stranku, tak kontroluj ci je dane id na stranke
- kontroluj http a https, ak z https stranky nacitame http obsah,... vyhod warning. V pripade linkov z https na http v ramci jednej domeny asi tiez.
===============================================================================================
__________ .__.__ .___ /\ ____ ___ .___
\______ \__ __|__| | __| _/ / / | | \______ ________________ __| _/____
| | _/ | \ | | / __ | / / | | /\____ \ / ___\_ __ \__ \ / __ |/ __ \
| | \ | / | |__/ /_/ | / / | | / | |_> > /_/ > | \// __ \_/ /_/ \ ___/
|________/____/|__|____/\_____| / / |______/ | __/\___ /|__| (______/\_____|\_____>
\/ |__| /_____/
===============================================================================================
____________
validator.nu
‾‾‾‾‾‾‾‾‾‾‾‾
mkdir validator.nu
cd validator.nu
hg clone https://bitbucket.org/validator/build build
# see build/README
python build/build.py checkout
python build/build.py dldeps
____________________
jigsaw css validator
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
# see http://jigsaw.w3.org/css-validator/DOWNLOAD.html
# there is a link to css-validator.jar or a guide how to fetch cvs repo
==================================================================
__________ __
\______ \____________ ____ _____ _____ | | _____.__.
| ___/ _ \___ // \\__ \ / \| |/ < | |
| | ( <_> ) /| | \/ __ \| Y Y \ < \___ |
|____| \____/______\___|__(______/__|_|__/__|__\/_____|
==================================================================
co by malo byt v dokumentacii:
https://github.com/tlvince/w3c-validator-guide
poznamka o tom, ze html5 validator je experimentalny, html5 sa stale vyvija, takze
"Just because your code doesn't validate doesn't mean it isn't valid"
-----------------------------------------------
Definicie pouzite v programe:
[1] XML declaration
[2] @charset
[3] http 1.1 text/*
[4] Media Types
[5] New Rules for Default "charset" Parameter Values for "text/*" Media Types
-------------------------------------------------------------------------------
[1]
The XML declaration typically appears as the first line in an XML document. The
XML declaration is not required, however, if used it must be the first line in
the document and no other content or white space can precede it.
The XML declaration in the document map consists of the following:
- The version number, <?xml version="1.0"?>.
This is mandatory. Although the number might change for future versions
of XML, 1.0 is the current version.
- The encoding declaration, <?xml version="1.0" encoding="UTF-8"?>
This is optional. If used, the encoding declaration must appear immediately
after the version information in the XML declaration, and must contain
a value representing an existing character encoding.
- An XML declaration can also contain a standalone declaration, for example,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>. Like the encoding
declaration, the standalone declaration is optional. If used, the standalone
declaration must appear last in the XML declaration.
[2]
The @charset CSS at-rule:
It must be the first element in the style sheet and not be preceded by any character.
syntax: @charset charset;
examples:
@charset "UTF-8"; /* Set the encoding of the style sheet to Unicode UTF-8 */
@charset 'iso-8859-15'; /* Set the encoding of the style sheet to Latin-9 (Western European languages, with euro sign) */
@charset "UTF-8"; /* Invalid, there is a character (a space) before the at-rule */
@charset UTF-8; /* Invalid, without ' or ", the charset is not a CSS <string> */
[3]
Documents transmitted with HTTP that are of type text, such as text/html,
text/plain, etc., can send a charset parameter in the HTTP header to specify
the character encoding of the document.
It is very important to always label Web documents explicitly. HTTP 1.1 says
that the default charset is ISO-8859-1.
[4]
media-type = type "/" subtype *( ";" parameter )
type = token
subtype = token
Parameters MAY follow the type/subtype in the form of attribute/value
pairs (attribute=value).
The type, subtype, and parameter attribute names are case-insensitive.
Parameter values might or might not be case-sensitive, depending on the
semantics of the parameter name. Linear white space (LWS) MUST NOT be used
between the type and subtype, nor between an attribute and its value.
The presence or absence of a parameter might be significant to the processing
of a media-type, depending on its definition within the media type registry.
[5]
In order to improve interoperability with deployed agents, "text/*"
media type registrations SHOULD either
- specify that the "charset" parameter is not used for the defined
subtype, because the charset information is transported inside
the payload (such as in "text/xml"), or
- require explicit unconditional inclusion of the "charset"
parameter, eliminating the need for a default value.
Thus, new subtypes of the "text" media type SHOULD NOT define a default
"charset" value. If there is a strong reason to do so despite this advice,
they SHOULD use the "UTF-8" [RFC3629] charset as the default.
------------------------------------------------------------
referencie:
[1] http://msdn.microsoft.com/en-us/library/ms256048.aspx
[2] https://developer.mozilla.org/en-US/docs/Web/CSS/@charset
[3] http://www.w3.org/International/O-HTTP-charset
[4] http://tools.ietf.org/html/rfc2616.html#section-3.7
[5] http://tools.ietf.org/html/rfc6657#page-3
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment