After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 711670 - Allow htmlParseDocument to keep namespaces
Allow htmlParseDocument to keep namespaces
Status: RESOLVED DUPLICATE of bug 654146
Product: libxml2
Classification: Platform
Component: htmlparser
git master
Other All
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-08 12:42 UTC by pascal007
Modified: 2017-06-17 10:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A HTML snippet that should be parsed with preserved namespace "my" and "fb" (236 bytes, text/html)
2013-11-08 12:42 UTC, pascal007
Details

Description pascal007 2013-11-08 12:42:11 UTC
Created attachment 259250 [details]
A HTML snippet that should be parsed with preserved namespace "my" and "fb"

The method "htmlParseDocument" to parse HTML does strip all namespaces in the given HTML string. But it's common that you have namespaces in HTML (e.x. <fb:like> of Facebooks like button and so on). But because the function strips the namespaces of this tags, you can not acces them via namespace.

In the example I added a file with some namespace which should then be available after the HTML is parsed.
Comment 1 Nick Wellnhofer 2017-06-17 10:58:40 UTC

*** This bug has been marked as a duplicate of bug 654146 ***