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 642916 - HTML_PARSE_NOIMPLIED does nothing
HTML_PARSE_NOIMPLIED does nothing
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
2.7.8
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-21 21:36 UTC by Martin Schröder
Modified: 2012-05-10 14:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that fixes the skipping of the HTML_PARSE_NOIMPLIED flag (542 bytes, patch)
2011-02-21 21:36 UTC, Martin Schröder
none Details | Review

Description Martin Schröder 2011-02-21 21:36:33 UTC
Created attachment 181524 [details] [review]
Patch that fixes the skipping of the HTML_PARSE_NOIMPLIED flag

Hello everyone.

I just noticed that the HTML_PARSE_NOIMPLIED flag that you can pass to the HTML-Parser methods doesn't do anything. Its intended purpose is to stop the HTML-parser from forcibly adding a pair of html/body tags if the stream does not contain any.

This is highly useful when you don't need this level of strictness. Unfortunately, specifying it doesn't work, because the option is not copied into the parsing context.


I've added a very simple patch that fixes this oversight. This should bring the library into conformance with the API-Docs in this respect. I'd be honored if you could include it into the next release.


Thanks in advance,
    Martin Schröder.
Comment 1 André Klapper 2012-02-03 13:37:33 UTC
Comment on attachment 181524 [details] [review]
Patch that fixes the skipping of the HTML_PARSE_NOIMPLIED flag

[Setting "patch" flag and correcting mime type so this can actually be queried for.]
Comment 2 Martin Schröder 2012-03-23 10:57:42 UTC
Hello everyone.

I've reported this bug over a full year ago; and even after André fixed my omission last month of marking this bug as also having a patch associated with it, there does not seem to be any attention from the actualy developers with access to the code repository.

I wonder what's the hold-up here, as this patch fixes the inconsistency between the API and the actual implementation, is so simple as that verifying its correctness is easy enough and *only* affects users if they actually specify the flag, knowing full well what it SHOULD do. Additionally, the libxml2 actually does what the flags says, if you just apply this patch.


So, what can be done to expedite the admission of this patch to the code repository?
Comment 3 Daniel Veillard 2012-05-10 12:19:35 UTC
Patch looks fine applied and commited, it will be in the next release, thanks !

http://git.gnome.org/browse/libxml2/commit/?id=b91111b47599b9b07830db5ae2291739d22c384b

I'm the developper of libxml2 and it's mostly in maintainance mode at this
point, so I don't make release often and don't look for patches often either.
No hold-up here.
Another option for faster feedback is sending the patch to the mailing-list

Daniel
Comment 4 Martin Schröder 2012-05-10 14:26:12 UTC
(In reply to comment #3)

Ahh, thanks, that explains it. As I said a year ago, I'm honoured that you have accepted the patch into the mainline. If I ever find another issue, I'll be sure to remember posting to the mailing list.


Anyway, thanks for this great piece of software. I can't even estimate how many hours of work it has saved me so far. :)

-- Martin
Comment 5 Daniel Veillard 2012-05-10 14:47:34 UTC
No problem, I think I would be frustrated too if my patches were languishing for
years. I will make a release candidate this week-end I think if you can give it
a try when it is out within a week, that would be a good way to help too :-)

  thanks !

Daniel