Skip to content

Commit

Permalink
sync with en rev
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardolara committed Oct 26, 2024
1 parent daba019 commit bcfb952
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions appendices/migration84/new-features.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: f25c0ef9ed425cad58189d915291e5d7c9bf964c Maintainer: leonardolara Status: ready -->
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: b04b46c9645e966ed1ae37dd41de7be1da9de22e Maintainer: leonardolara Status: ready -->
<sect1 xml:id="migration84.new-features">
<title>Novos Recursos</title>

Expand Down Expand Up @@ -260,6 +260,17 @@ $object = $reflector->newLazyGhost($initializer);
<sect2 xml:id="migration84.new-features.dom">
<title>DOM</title>

<!-- RFC: https://wiki.php.net/rfc/domdocument_html5_parser -->
<!-- RFC: https://wiki.php.net/rfc/opt_in_dom_spec_compliance -->
<simpara>
Adicionado o espaço de nomes <package>Dom</package> com novas classes como contrapartes
às classes DOM existentes (ex.: <classname>Dom\Node</classname> é a nova
<classname>DOMNode</classname>).
Estas classes são compatíveis com HTML 5 e cumprem as especificações WHATWG;
resolvendo problemas antigos na extensão DOM.
As classes DOM antigas continuam disponíveis para compatibilidade com versões anteriores.
</simpara>

<para>
Adicionado o método <methodname>DOMNode::compareDocumentPosition</methodname>
com suas constantes associadas:
Expand All @@ -277,7 +288,10 @@ $object = $reflector->newLazyGhost($initializer);
<simpara>
Agora é possível passar qualquer chamável para
<methodname>DOMXPath::registerPhpFunctions</methodname>.
<!-- TODO Mention DOMXPath::registerPHPFunctionNS ? -->

Além disso, com <methodname>DOMXPath::registerPhpFunctionNs</methodname>,
agora podem ser registradas funções de retorno usarão sintaxe de chamada de função nativa
em vez de usar <code>php:function('name')</code>.
</simpara>
</sect2>

Expand Down

0 comments on commit bcfb952

Please sign in to comment.