summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5')
-rw-r--r--src/HTML5/Elements.php4
-rw-r--r--src/HTML5/Serializer/Traverser.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php
index b45de89..511da9d 100644
--- a/src/HTML5/Elements.php
+++ b/src/HTML5/Elements.php
@@ -557,7 +557,7 @@ class Elements
* @param string $name
* The name of the element.
*
- * @return int|bool The element mask or false if element does not exist.
+ * @return int The element mask.
*/
public static function element($name)
{
@@ -571,7 +571,7 @@ class Elements
return static::$mathml[$name];
}
- return false;
+ return 0;
}
/**
diff --git a/src/HTML5/Serializer/Traverser.php b/src/HTML5/Serializer/Traverser.php
index e95dc36..399570d 100644
--- a/src/HTML5/Serializer/Traverser.php
+++ b/src/HTML5/Serializer/Traverser.php
@@ -16,7 +16,7 @@ class Traverser
/**
* Namespaces that should be treated as "local" to HTML5.
*/
- static $local_ns = array(
+ protected static $local_ns = array(
'http://www.w3.org/1999/xhtml' => 'html',
'http://www.w3.org/1998/Math/MathML' => 'math',
'http://www.w3.org/2000/svg' => 'svg'