We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd355f3 commit d6f33a8Copy full SHA for d6f33a8
src/AirBubble/Parser/Tokenizer.php
@@ -36,6 +36,7 @@
36
use ElementaryFramework\AirBubble\Exception\UnknownTokenException;
37
use ElementaryFramework\AirBubble\Tokens\IToken;
38
use ElementaryFramework\AirBubble\Util\TokensRegistry;
39
+use ElementaryFramework\AirBubble\Util\NamespacesRegistry;
40
41
/**
42
* Template tokenizer
@@ -99,8 +100,11 @@ private function _tokenizeElement(\DOMElement $element)
99
100
$this->_tokenizeElement($e);
101
}
102
- if (strpos($e->nodeName, "b:") === 0) {
103
- $this->_tokens->add($this->_toToken($e));
+ foreach (NamespacesRegistry::registry() as $ns => $uri) {
104
+ if (strpos($e->nodeName, $ns) === 0) {
105
+ $this->_tokens->add($this->_toToken($e));
106
+ break;
107
+ }
108
109
110
0 commit comments