Skip to content

Commit 1db1716

Browse files
author
Edward Z. Yang ext:(%22)
committed
Workaround another libxml bug, begin running all specced tests.
1 parent 05898a4 commit 1db1716

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

library/HTML5/TreeConstructer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,6 +3701,9 @@ public function insertForeignElement($token, $namespaceURI) {
37013701
// XSKETCHY: work around godawful libxml bug
37023702
if ($ns === self::NS_XLINK) {
37033703
$el->setAttribute('xlink:'.$attr, $kp['value']);
3704+
} elseif ($ns === self::NS_HTML) {
3705+
// Another godawful libxml bug
3706+
$el->setAttribute($attr, $kp['value']);
37043707
} else {
37053708
$el->setAttributeNS($ns, $attr, $kp['value']);
37063709
}

tests/HTML5/TestData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static public function generateTestCases($base, $prefix, $type, $glob) {
2525
if ($type === 'tree-construction') {
2626
// skip XFOREIGN tests for now
2727
$num = (int) substr($name, 5);
28-
if ($num >= 11) continue;
28+
if ($num >= 99) continue;
2929
}
3030
$pfilename = var_export($filename, true);
3131
$code = "class $prefix$name extends $base { public \$filename = $pfilename; }";

0 commit comments

Comments
 (0)