You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a custom namespaced element (apart from the hardcoded SVG and MathML
namespaces) causes a failure with DOMDocument::createElementNS(). For
instance the following piece of HTML:
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<fb:login-button>Facebook Connect</fb:login-button>
</body>
</html>
It causes the following warning (which should be an error, since the
function returns nothing):
PHP Warning: DOMDocument::createElementNS(): Namespace Error in
TreeBuilder.php on line 3055
The problem is that TreeBuilder doesn't care of the XMLNS declarations in
the HTML tag when creating elements, and it never uses the defined
namespace URL when building elements. Thus, when calling
DOMDocument::createElementNS() for 'fb:login_button' it tries to create a
namespaced element using null as the namespaceURI, which causes a failure.
I attached a patch, which fixes the problem.
Original issue reported on code.google.com by [email protected] on 5 Jan 2010 at 3:26
Original issue reported on code.google.com by
[email protected]
on 5 Jan 2010 at 3:26Attachments:
The text was updated successfully, but these errors were encountered: