History log of /php-src/ext/dom/html5_serializer.c (Results 1 – 10 of 10)
Revision Date Author Comments
# 690ce6d5 24-Aug-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15570: Segmentation fault (access null pointer) in ext/dom/html5_serializer.c

Closes GH-15572.


# 793f6321 23-Aug-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix NULL pointer dereference with NULL content in legacy nodes (#15546)


# 6980eba8 10-Jul-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Support templated content

The template element in HTML 5 is special in the sense that it does not
add its contents into the DOM tree, but instead keeps them in a separate
shadow DOM

Support templated content

The template element in HTML 5 is special in the sense that it does not
add its contents into the DOM tree, but instead keeps them in a separate
shadow DOM document fragment. Interacting with the DOM tree cannot touch
the elements in the document fragment.

Closes GH-14906.

show more ...


# 33289dfa 08-Jul-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Revert "Remove unnecessary include statements from dom"

This reverts commit dd795022fa5644cc8a5a54fd63c99ab3c6bc81e1.


# dd795022 06-Jul-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Remove unnecessary include statements from dom


# 11accb5c 25-Jun-2024 Arnaud Le Blanc

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

-I$(top_builddir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/main
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM
-I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

-I$(top_builddir)/main
-I$(top_builddir)
-I$(top_srcdir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.

show more ...


# 0a0e8064 05-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix serialization of entity references in attributes (#13884)


# 14b6c981 09-Mar-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[RFC] Add a way to opt-in ext/dom spec compliance (#13031)

RFC: https://wiki.php.net/rfc/opt_in_dom_spec_compliance


# 0870da33 16-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Use strcspn() to optimize dom_html5_escape_string() (#12948)

* Use strcspn() to optimize dom_html5_escape_string()

This routine implemented by libc uses a faster algorithm than the

Use strcspn() to optimize dom_html5_escape_string() (#12948)

* Use strcspn() to optimize dom_html5_escape_string()

This routine implemented by libc uses a faster algorithm than the old
naive byte-per-byte approach here. It also is often optimized using
SIMD.

* Calculate mask outside of loop

show more ...


# 1492be52 13-Nov-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[RFC] DOM HTML5 parsing and serialization support (#12111)