Update besar apk finance

This commit is contained in:
Wian Drs
2026-09-11 16:03:00 +07:00
parent d42483b350
commit 4ef15c22ae
897 changed files with 98056 additions and 15979 deletions
+2
View File
@@ -310,6 +310,7 @@ class Elements
'feDiffuseLighting' => 1,
'feDisplacementMap' => 1,
'feDistantLight' => 1,
'feDropShadow' => 1,
'feFlood' => 1,
'feFuncA' => 1,
'feFuncB' => 1,
@@ -463,6 +464,7 @@ class Elements
'fediffuselighting' => 'feDiffuseLighting',
'fedisplacementmap' => 'feDisplacementMap',
'fedistantlight' => 'feDistantLight',
'fedropshadow' => 'feDropShadow',
'feflood' => 'feFlood',
'fefunca' => 'feFuncA',
'fefuncb' => 'feFuncB',
@@ -397,9 +397,9 @@ class DOMTreeBuilder implements EventHandler
// When we are on a void tag, we do not need to care about namesapce nesting.
if ($pushes > 0 && !Elements::isA($name, Elements::VOID_TAG)) {
// PHP tends to free the memory used by DOM,
// to avoid spl_object_hash collisions whe have to avoid garbage collection of $ele storing it into $pushes
// to avoid spl_object_id collisions we have to avoid garbage collection of $ele storing it into $pushes
// see https://bugs.php.net/bug.php?id=67459
$this->pushes[spl_object_hash($ele)] = array($pushes, $ele);
$this->pushes[spl_object_id($ele)] = array($pushes, $ele);
}
foreach ($attributes as $aName => $aVal) {
@@ -521,7 +521,7 @@ class DOMTreeBuilder implements EventHandler
$lname = Elements::normalizeSvgElement($lname);
}
$cid = spl_object_hash($this->current);
$cid = spl_object_id($this->current);
// XXX: HTML has no parent. What do we do, though,
// if this element appears in the wrong place?
@@ -1208,6 +1208,10 @@ class Tokenizer
*/
protected function is_alpha($input)
{
if (!is_string($input) || 1 !== strlen($input)) {
return false;
}
$code = ord($input);
return ($code >= 97 && $code <= 122) || ($code >= 65 && $code <= 90);
File diff suppressed because it is too large Load Diff
@@ -16,9 +16,6 @@ use Masterminds\HTML5\Elements;
*/
class OutputRules implements RulesInterface
{
/**
* Defined in http://www.w3.org/TR/html51/infrastructure.html#html-namespace-0.
*/
const NAMESPACE_HTML = 'http://www.w3.org/1999/xhtml';
const NAMESPACE_MATHML = 'http://www.w3.org/1998/Math/MathML';
@@ -50,13 +47,6 @@ class OutputRules implements RulesInterface
const IM_IN_MATHML = 3;
/**
* Used as cache to detect if is available ENT_HTML5.
*
* @var bool
*/
private $hasHTML5 = false;
protected $traverser;
protected $encode = false;
@@ -167,7 +157,6 @@ class OutputRules implements RulesInterface
$this->outputMode = static::IM_IN_HTML;
$this->out = $output;
$this->hasHTML5 = defined('ENT_HTML5');
}
public function addRule(array $rule)
@@ -454,7 +443,7 @@ class OutputRules implements RulesInterface
*/
protected function wr($text)
{
fwrite($this->out, $text);
fwrite($this->out, (string) $text);
return $this;
}
@@ -489,12 +478,8 @@ class OutputRules implements RulesInterface
* This includes such characters as +.# and many other common ones. By default
* encoding here will just escape &'<>".
*
* Note, PHP 5.4+ has better html5 encoding.
*
* @todo Use the Entities class in php 5.3 to have html5 entities.
*
* @param string $text Text to encode.
* @param bool $attribute True if we are encoding an attrubute, false otherwise.
* @param bool $attribute True if we are encoding an attribute, false otherwise.
*
* @return string The encoded text.
*/
@@ -505,16 +490,7 @@ class OutputRules implements RulesInterface
return $this->escape($text, $attribute);
}
// If we are in PHP 5.4+ we can use the native html5 entity functionality to
// convert the named character references.
if ($this->hasHTML5) {
return htmlentities($text, ENT_HTML5 | ENT_SUBSTITUTE | ENT_QUOTES, 'UTF-8', false);
} // If a version earlier than 5.4 html5 entities are not entirely handled.
// This manually handles them.
else {
return strtr($text, HTML5Entities::$map);
}
return htmlentities($text, ENT_HTML5 | ENT_SUBSTITUTE | ENT_QUOTES, 'UTF-8', false);
}
/**