2023-11-14

Fremantle

This is a draft.

I've been working on an SVG Translate bug, T334454 Git tag/version fetching times out, which involved updating a dependency of the project and then adding that in.

But before can be done, the current state of the code needs to be able to pass CI, and it's failing because of a weird inconsistency

https://3v4l.org/YMY6j

<?php
$dom = new DOMDocument();
$dom->loadXML('<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"><text><svg:tspan>T</svg:tspan></text></svg>');
$text = $dom->getElementsByTagName('text')[0];
$switch = $dom->createElementNS('http://www.w3.org/2000/svg', 'switch');
$text->parentNode->insertBefore($switch, $text);
$switch->appendChild($text);
echo $dom->saveXML($dom->getElementsByTagName('switch')[0]);

Output for 5.6.3 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.20, 8.1.25 - 8.1.27, 8.2.0 - 8.2.7, 8.2.12 - 8.2.15, 8.3.0 - 8.3.2

   <svg:switch><svg:text><svg:tspan>T</svg:tspan></svg:text></svg:switch>

Output for 8.1.21 - 8.1.24, 8.2.8 - 8.2.11

   <switch><text><tspan>T</tspan></text></switch>


Bug #81468 Inconsistent default namespace inheritance https://bugs.php.net/bug.php?id=81468

T316741 Allow svg namespace prefixes other than 'svg'