Update to Drupal 8.1.5. For more information, see https://www.drupal.org/project/drupal/releases/8.1.5
This commit is contained in:
parent
13b6ca7cc2
commit
38ba7c357d
342 changed files with 7814 additions and 1534 deletions
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
|
@ -949,17 +949,17 @@
|
|||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
"version": "2.1.2",
|
||||
"version_normalized": "2.1.2.0",
|
||||
"version": "2.2.1",
|
||||
"version_normalized": "2.2.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Masterminds/html5-php.git",
|
||||
"reference": "8f782e0f01a6e33a319bdc8f6de9cfd6569979a4"
|
||||
"reference": "170aa5cb35b29fccafbf5ea63487c013f396fdc9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/8f782e0f01a6e33a319bdc8f6de9cfd6569979a4",
|
||||
"reference": "8f782e0f01a6e33a319bdc8f6de9cfd6569979a4",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/170aa5cb35b29fccafbf5ea63487c013f396fdc9",
|
||||
"reference": "170aa5cb35b29fccafbf5ea63487c013f396fdc9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -969,9 +969,9 @@
|
|||
"require-dev": {
|
||||
"phpunit/phpunit": "4.*",
|
||||
"sami/sami": "~2.0",
|
||||
"satooshi/php-coveralls": "0.6.*"
|
||||
"satooshi/php-coveralls": "1.0.*"
|
||||
},
|
||||
"time": "2015-06-07 08:43:18",
|
||||
"time": "2016-05-10 14:11:45",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
|
41
vendor/masterminds/html5/.scrutinizer.yml
vendored
Normal file
41
vendor/masterminds/html5/.scrutinizer.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
tools:
|
||||
php_mess_detector: true
|
||||
php_analyzer:
|
||||
config:
|
||||
parameter_reference_check: { enabled: false }
|
||||
checkstyle: { enabled: false, no_trailing_whitespace: true, naming: { enabled: true, local_variable: '^[a-z][a-zA-Z0-9]*$', abstract_class_name: ^Abstract|Factory$, utility_class_name: 'Utils?$', constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$', property_name: '^[a-z][a-zA-Z0-9]*$', method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$', parameter_name: '^[a-z][a-zA-Z0-9]*$', interface_name: '^[A-Z][a-zA-Z0-9]*Interface$', type_name: '^[A-Z][a-zA-Z0-9]*$', exception_name: '^[A-Z][a-zA-Z0-9]*Exception$', isser_method_name: '^(?:is|has|should|may|supports)' } }
|
||||
unreachable_code: { enabled: false }
|
||||
check_access_control: { enabled: false }
|
||||
typo_checks: { enabled: false }
|
||||
check_variables: { enabled: false }
|
||||
check_calls: { enabled: true, too_many_arguments: true, missing_argument: true, argument_type_checks: lenient }
|
||||
suspicious_code: { enabled: false, overriding_parameter: false, overriding_closure_use: false, parameter_closure_use_conflict: false, parameter_multiple_times: false, non_existent_class_in_instanceof_check: false, non_existent_class_in_catch_clause: false, assignment_of_null_return: false, non_commented_switch_fallthrough: false, non_commented_empty_catch_block: false, overriding_private_members: false, use_statement_alias_conflict: false, precedence_in_condition_assignment: false }
|
||||
dead_assignments: { enabled: false }
|
||||
verify_php_doc_comments: { enabled: false, parameters: false, return: false, suggest_more_specific_types: false, ask_for_return_if_not_inferrable: false, ask_for_param_type_annotation: false }
|
||||
loops_must_use_braces: { enabled: false }
|
||||
check_usage_context: { enabled: true, foreach: { value_as_reference: true, traversable: true } }
|
||||
simplify_boolean_return: { enabled: false }
|
||||
phpunit_checks: { enabled: false }
|
||||
reflection_checks: { enabled: false }
|
||||
precedence_checks: { enabled: true, assignment_in_condition: true, comparison_of_bit_result: true }
|
||||
basic_semantic_checks: { enabled: false }
|
||||
unused_code: { enabled: false }
|
||||
deprecation_checks: { enabled: false }
|
||||
useless_function_calls: { enabled: false }
|
||||
metrics_lack_of_cohesion_methods: { enabled: false }
|
||||
metrics_coupling: { enabled: true, stable_code: { namespace_prefixes: { }, classes: { } } }
|
||||
doctrine_parameter_binding: { enabled: false }
|
||||
doctrine_entity_manager_injection: { enabled: false }
|
||||
symfony_request_injection: { enabled: false }
|
||||
doc_comment_fixes: { enabled: false }
|
||||
reflection_fixes: { enabled: false }
|
||||
use_statement_fixes: { enabled: true, remove_unused: true, preserve_multiple: false, preserve_blanklines: false, order_alphabetically: false }
|
||||
php_code_sniffer: true
|
||||
sensiolabs_security_checker: true
|
||||
php_cpd: true
|
||||
php_loc: true
|
||||
php_pdepend: true
|
||||
external_code_coverage: true
|
||||
filter:
|
||||
paths:
|
||||
- src/*
|
11
vendor/masterminds/html5/.travis.yml
vendored
11
vendor/masterminds/html5/.travis.yml
vendored
|
@ -11,8 +11,12 @@ php:
|
|||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- hhvm
|
||||
- nightly
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
|
||||
notifications:
|
||||
irc: "irc.freenode.net#masterminds"
|
||||
|
@ -23,7 +27,8 @@ before_script:
|
|||
|
||||
script:
|
||||
- mkdir -p build/logs
|
||||
- ./vendor/bin/phpunit -c phpunit.xml.dist
|
||||
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
|
||||
after_script:
|
||||
- php vendor/bin/coveralls -v
|
||||
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ] ; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
|
||||
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi;'
|
||||
|
|
21
vendor/masterminds/html5/README.md
vendored
21
vendor/masterminds/html5/README.md
vendored
|
@ -9,10 +9,13 @@ But after some initial refactoring work, we began a new parser.
|
|||
- Composer support
|
||||
- Event-based (SAX-like) parser
|
||||
- DOM tree builder
|
||||
- Interoperability with QueryPath [[in progress](https://github.com/technosophos/querypath/issues/114)]
|
||||
- Interoperability with [QueryPath](https://github.com/technosophos/querypath)
|
||||
- Runs on **PHP** 5.3.0 or newer and **HHVM** 3.2 or newer
|
||||
|
||||
[](https://travis-ci.org/Masterminds/html5-php) [](https://packagist.org/packages/masterminds/html5) [](https://coveralls.io/r/Masterminds/html5-php?branch=master)
|
||||
[](https://travis-ci.org/Masterminds/html5-php)
|
||||
[](https://packagist.org/packages/masterminds/html5)
|
||||
[](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
|
||||
[](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -36,7 +39,7 @@ install.
|
|||
|
||||
## Basic Usage
|
||||
|
||||
HTML5-PHP has a high-level API and a low-level API.
|
||||
HTML5-PHP has a high-level API and a low-level API.
|
||||
|
||||
Here is how you use the high-level `HTML5` library API:
|
||||
|
||||
|
@ -144,14 +147,14 @@ The serializer is broken into three parts:
|
|||
|
||||
- The `OutputRules` contain the rules to turn DOM elements into strings. The
|
||||
rules are an implementation of the interface `RulesInterface` allowing for
|
||||
different rule sets to be used.
|
||||
different rule sets to be used.
|
||||
- The `Traverser`, which is a special-purpose tree walker. It visits
|
||||
each node node in the tree and uses the `OutputRules` to transform the node
|
||||
into a string.
|
||||
- `HTML5` manages the `Traverser` and stores the resultant data
|
||||
in the correct place.
|
||||
|
||||
The serializer (`save()`, `saveHTML()`) follows the
|
||||
The serializer (`save()`, `saveHTML()`) follows the
|
||||
[section 8.9 of the HTML 5.0 spec](http://www.w3.org/TR/2012/CR-html5-20121217/syntax.html#serializing-html-fragments).
|
||||
So tags are serialized according to these rules:
|
||||
|
||||
|
@ -166,8 +169,8 @@ issues known issues that are not presently on the roadmap:
|
|||
|
||||
- Namespaces: HTML5 only [supports a selected list of namespaces](http://www.w3.org/TR/html5/infrastructure.html#namespaces)
|
||||
and they do not operate in the same way as XML namespaces. A `:` has no special
|
||||
meaning.
|
||||
By default the parser does not support XML style namespaces via `:`;
|
||||
meaning.
|
||||
By default the parser does not support XML style namespaces via `:`;
|
||||
to enable the XML namespaces see the [XML Namespaces section](#xml-namespaces)
|
||||
- Scripts: This parser does not contain a JavaScript or a CSS
|
||||
interpreter. While one may be supplied, not all features will be
|
||||
|
@ -184,13 +187,13 @@ issues known issues that are not presently on the roadmap:
|
|||
* Per the spec, many legacy tags are admitted and correctly handled,
|
||||
even though they are technically not part of HTML5.
|
||||
- Attribute names and values: Due to the implementation details of the
|
||||
PHP implementation of DOM, attribute names that do not follow the
|
||||
PHP implementation of DOM, attribute names that do not follow the
|
||||
XML 1.0 standard are not inserted into the DOM. (Effectively, they
|
||||
are ignored.) If you've got a clever fix for this, jump in!
|
||||
- Processor Instructions: The HTML5 spec does not allow processor
|
||||
instructions. We do. Since this is a server-side library, we think
|
||||
this is useful. And that means, dear reader, that in some cases you
|
||||
can parse the HTML from a mixed PHP/HTML document. This, however,
|
||||
can parse the HTML from a mixed PHP/HTML document. This, however,
|
||||
is an incidental feature, not a core feature.
|
||||
- HTML manifests: Unsupported.
|
||||
- PLAINTEXT: Unsupported.
|
||||
|
|
19
vendor/masterminds/html5/RELEASE.md
vendored
19
vendor/masterminds/html5/RELEASE.md
vendored
|
@ -1,7 +1,24 @@
|
|||
# Release Notes
|
||||
|
||||
2.2.1 (2015-05-10)
|
||||
|
||||
- #109: Fixed issue where address tag could be written without closing tag
|
||||
|
||||
2.2.0 (2015-04-11)
|
||||
|
||||
- #105: Enable composer cache (for CI/CD)
|
||||
- #100: Use mb_substitute_character inset of ini_set for environments where
|
||||
ini_set is disable (e.g., shared hosting)
|
||||
- #98: Allow link, meta, style tags in noscript tags
|
||||
- #96: Fixed xml:href on svgs that use the "use" breaking
|
||||
- #94: Counting UTF8 characters performance improvement
|
||||
- #93: Use newer version of coveralls package
|
||||
- #90: Remove duplicate test
|
||||
- #87: Allow multiple root nodes
|
||||
|
||||
2.1.2 (2015-06-07)
|
||||
- #82: Support for PHP7
|
||||
- #84: Improved boolean attribute handling
|
||||
- #84: Improved boolean attribute handling
|
||||
|
||||
2.1.1 (2015-03-23)
|
||||
- #78: Fixes bug where unmatched entity like string drops everything after &.
|
||||
|
|
2
vendor/masterminds/html5/composer.json
vendored
2
vendor/masterminds/html5/composer.json
vendored
|
@ -24,7 +24,7 @@
|
|||
"php" : ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"satooshi/php-coveralls": "0.6.*",
|
||||
"satooshi/php-coveralls": "1.0.*",
|
||||
"phpunit/phpunit" : "4.*",
|
||||
"sami/sami": "~2.0"
|
||||
},
|
||||
|
|
13
vendor/masterminds/html5/phpunit.xml.dist
vendored
13
vendor/masterminds/html5/phpunit.xml.dist
vendored
|
@ -14,17 +14,4 @@
|
|||
<file>src/HTML5/Serializer/HTML5Entities.php</file>
|
||||
</blacklist>
|
||||
</filter>
|
||||
<logging>
|
||||
<log
|
||||
type="coverage-html"
|
||||
target="build/coverage"
|
||||
charset="UTF-8"
|
||||
yui="true"
|
||||
highlight="true"
|
||||
lowUpperBound="35"
|
||||
highLowerBound="70"
|
||||
showUncoveredFiles="true"
|
||||
/>
|
||||
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
||||
</logging>
|
||||
</phpunit>
|
||||
|
|
|
@ -24,7 +24,7 @@ class Elements
|
|||
const KNOWN_ELEMENT = 1;
|
||||
|
||||
// From section 8.1.2: "script", "style"
|
||||
// From 8.2.5.4.7 ("in body" insertion mode): "noembed", "noscript"
|
||||
// From 8.2.5.4.7 ("in body" insertion mode): "noembed"
|
||||
// From 8.4 "style", "xmp", "iframe", "noembed", "noframes"
|
||||
/**
|
||||
* Indicates the contained text should be processed as raw text.
|
||||
|
@ -79,7 +79,7 @@ class Elements
|
|||
public static $html5 = array(
|
||||
"a" => 1,
|
||||
"abbr" => 1,
|
||||
"address" => 89, // NORMAL | VOID_TAG | AUTOCLOSE_P | BLOCK_TAG
|
||||
"address" => 65, // NORMAL | BLOCK_TAG
|
||||
"area" => 9, // NORMAL | VOID_TAG
|
||||
"article" => 81, // NORMAL | AUTOCLOSE_P | BLOCK_TAG
|
||||
"aside" => 81, // NORMAL | AUTOCLOSE_P | BLOCK_TAG
|
||||
|
@ -144,7 +144,7 @@ class Elements
|
|||
"meta" => 9, // NORMAL | VOID_TAG
|
||||
"meter" => 1,
|
||||
"nav" => 17, // NORMAL | AUTOCLOSE_P,
|
||||
"noscript" => 67, // NORMAL | TEXT_RAW | BLOCK_TAG
|
||||
"noscript" => 65, // NORMAL | BLOCK_TAG
|
||||
"object" => 1,
|
||||
"ol" => 81, // NORMAL | AUTOCLOSE_P | BLOCK_TAG
|
||||
"optgroup" => 1,
|
||||
|
@ -557,7 +557,7 @@ class Elements
|
|||
* @param string $name
|
||||
* The name of the element.
|
||||
*
|
||||
* @return int The element mask.
|
||||
* @return int|bool The element mask or false if element does not exist.
|
||||
*/
|
||||
public static function element($name)
|
||||
{
|
||||
|
|
|
@ -69,7 +69,7 @@ interface EventHandler
|
|||
* An array with all of the tag's attributes.
|
||||
* @param boolean $selfClosing
|
||||
* An indicator of whether or not this tag is self-closing (<foo/>)
|
||||
* @return numeric One of the Tokenizer::TEXTMODE_* constants.
|
||||
* @return int One of the Tokenizer::TEXTMODE_* constants.
|
||||
*/
|
||||
public function startTag($name, $attributes = array(), $selfClosing = false);
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ class Tokenizer
|
|||
}
|
||||
|
||||
elseif ($tok == 'D' || $tok == 'd') { // Doctype
|
||||
return $this->doctype('');
|
||||
return $this->doctype();
|
||||
}
|
||||
|
||||
elseif ($tok == '[') { // CDATA section
|
||||
|
|
|
@ -48,10 +48,10 @@ class UTF8Utils
|
|||
public static function countChars($string)
|
||||
{
|
||||
// Get the length for the string we need.
|
||||
if (function_exists('iconv_strlen')) {
|
||||
return iconv_strlen($string, 'utf-8');
|
||||
} elseif (function_exists('mb_strlen')) {
|
||||
if (function_exists('mb_strlen')) {
|
||||
return mb_strlen($string, 'utf-8');
|
||||
} elseif (function_exists('iconv_strlen')) {
|
||||
return iconv_strlen($string, 'utf-8');
|
||||
} elseif (function_exists('utf8_decode')) {
|
||||
// MPB: Will this work? Won't certain decodes lead to two chars
|
||||
// extrapolated out of 2-byte chars?
|
||||
|
@ -94,10 +94,10 @@ class UTF8Utils
|
|||
// application executing this library so we store the value, change it
|
||||
// to our needs, and then change it back when we are done. This feels
|
||||
// a little excessive and it would be great if there was a better way.
|
||||
$save = ini_get('mbstring.substitute_character');
|
||||
ini_set('mbstring.substitute_character', "none");
|
||||
$save = mb_substitute_character();
|
||||
mb_substitute_character('none');
|
||||
$data = mb_convert_encoding($data, 'UTF-8', $encoding);
|
||||
ini_set('mbstring.substitute_character', $save);
|
||||
mb_substitute_character($save);
|
||||
} // @todo Get iconv running in at least some environments if that is possible.
|
||||
elseif (function_exists('iconv') && $encoding != 'auto') {
|
||||
// fprintf(STDOUT, "iconv found\n");
|
||||
|
|
|
@ -185,7 +185,9 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
|
|||
{
|
||||
$this->doctype();
|
||||
if ($dom->documentElement) {
|
||||
$this->traverser->node($dom->documentElement);
|
||||
foreach ($dom->childNodes as $node) {
|
||||
$this->traverser->node($node);
|
||||
}
|
||||
$this->nl();
|
||||
}
|
||||
}
|
||||
|
@ -347,7 +349,7 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
|
|||
// the XML, XMLNS, or XLink NS's should use the canonical
|
||||
// prefix. It seems that DOM does this for us already, but there
|
||||
// may be exceptions.
|
||||
$name = $node->name;
|
||||
$name = $node->nodeName;
|
||||
|
||||
// Special handling for attributes in SVG and MathML.
|
||||
// Using if/elseif instead of switch because it's faster in PHP.
|
||||
|
|
|
@ -103,7 +103,6 @@ class Traverser
|
|||
case XML_CDATA_SECTION_NODE:
|
||||
$this->rules->cdata($node);
|
||||
break;
|
||||
// FIXME: It appears that the parser doesn't do PI's.
|
||||
case XML_PI_NODE:
|
||||
$this->rules->processorInstruction($node);
|
||||
break;
|
||||
|
|
Reference in a new issue