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 743172 - Ungrammatical error message in parser.c
Ungrammatical error message in parser.c
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-19 11:56 UTC by georggcc
Modified: 2017-06-17 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description georggcc 2015-01-19 11:56:06 UTC
Slightly confusing because ambiguous, file parser.c of libxml2 2.9.2 has these
messages. One of them, I'll assume, is shown by WebKit on hitting an attribute
name without a value (i.e. "foo", not "foo='...'") :

   8490:	       "Specification mandate value for attribute %s\n", name);
   9223:                          "Specification mandate value for attribute %s\n",

I take it that these statements either remind the reader
that there is one specification, which mandates,
or that there are two or more specifications,
which mandate. And that this is not to say "mandate value",
possibly as part of a noun triple "specification mandate value",
sounding like the value of a political specification mandate.
(Just illustrating the confusion in a end user's use case.)

If at all correct, then two ways of removing this little ambiguity
would be to substitute "Specifications mandate",
or "Specification mandates". (And adjust the expected
strings in error testing.) Or replace the verb-or-noun
"mandate" with "require(s)", if that's still adequate.

Sorry for the nitpicking, it just took some time to sort
this out when trying to viewing some xhtml document that
had an attribute without a value, which produced a red error
box containing the message.
Comment 1 Nick Wellnhofer 2017-06-17 15:43:01 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxml2/commit/?id=8bbe4508ef2a97110eac02f16782678c38ea97af

(The message is now "Specification mandates value...")