mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-18 16:19:55 +03:00
We are setting xmlns attributes at the root element but PHP would still attach redundant ones to the DOM elements created with `createElementNS`. That was because PHP reconciles namespace attributes when appending elements to DOM but since we previously only attached the elements after all children were attached, the reconciliation algorithm was not able to see the root element’s attributes. To fix this, let’s attach each element to its parent immediately after it is created. |
||
---|---|---|
.. | ||
AtomFormat.php | ||
HtmlFormat.php | ||
JsonFormat.php | ||
MrssFormat.php | ||
PlaintextFormat.php |