com php-src: Adding a note here for my future self so I won't need to look into this again: ext/dom/tests/node_textcontent.phpt
| From: | Rasmus Lerdorf | Date: | Sat, 10 Jan 2015 00:36:21 +0000 |
| Subject: | com php-src: Adding a note here for my future self so I won't need to look into this again: ext/dom/tests/node_textcontent.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84053@lists.php.net to get a copy of this message | ||
Commit: 16d779a83369f001680ac35a8e24d136c2d1b75a
Author: Rasmus Lerdorf <rasmus@php.net> Fri, 9 Jan 2015 16:36:21 -0800
Parents: deca9404060244274ad8150ce2d333aa378d12ed
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=16d779a83369f001680ac35a8e24d136c2d1b75a
Log:
Adding a note here for my future self so I won't
need to look into this again
Changed paths:
M ext/dom/tests/node_textcontent.phpt
Diff:
diff --git a/ext/dom/tests/node_textcontent.phpt b/ext/dom/tests/node_textcontent.phpt
index a731a26..f731288 100644
--- a/ext/dom/tests/node_textcontent.phpt
+++ b/ext/dom/tests/node_textcontent.phpt
@@ -4,7 +4,14 @@ Testing reading and writing to DOMNode::textContent
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
+/*
+ If this test is failing it is because the libxml2 library being used does
+ not have this bug fix from 2009:
+ https://github.com/GNOME/libxml2/commit/f3c06692e0d200ae0d35b5b3c31de8c56aa99ac6
+
+ The workaround if you are being hit by this is to add a <!DOCTYPE html> tag
+*/
$html = <<<HTML
<div id="test"><span>hi there</span></div>
HTML;