summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--src/HTML5/TreeBuilder.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index bb33a53..fcd40dc 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ create a newer version and are working to add the following features:
- Support for PHP namespace [done]
- Composer support [in progress]
- Interoperability with QueryPath [not started]
+- Add non-HTML namespace support to parser.
## Thanks to...
diff --git a/src/HTML5/TreeBuilder.php b/src/HTML5/TreeBuilder.php
index c22dbc1..45dfe10 100644
--- a/src/HTML5/TreeBuilder.php
+++ b/src/HTML5/TreeBuilder.php
@@ -3159,6 +3159,8 @@ class TreeBuilder {
}
private function insertElement($token, $append = true) {
+ // MPB: FIXME: This does not work with non-HTML namespaces where
+ // the name is not an lname, but a name with a prefix.
$el = $this->dom->createElementNS(self::NS_HTML, $token['name']);
if (!empty($token['attr'])) {