W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2008

[Bug 6304] [FT] attribute value tokenization

From: <bugzilla@wiggum.w3.org>
Date: Mon, 22 Dec 2008 06:52:57 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LEeev-00019i-Uk@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6304





--- Comment #2 from Michael Dyck <jmdyck@ibiblio.org>  2008-12-22 06:52:57 ---
I disagree, I believe it's a valid bug.

The example query:
      /books/book//title ftcontains "web site" ftand
      "usability" window 3 words

The only 'title' in the sample doc is:
      <title shortTitle="Improving Web Site Usability">Improving  
        the Usability of a Web Site Through Expert Reviews and
        Usability Testing</title>

While it's true that the value of the shortTitle attribute contains "web site"
and "usability" within a 3-word window, that value does not contribute to the
string value of the title element, and so is not in the search context for this
FTContainsExpr.

And while it's true that the string value of the title element does contain
"web site" and "usability", the smallest window that contains both phrases is a
5-word window, which does not satisfy the FTWindow filter.

Thus, the prose is incorrect when it says:
    [The] expression returns true, because the title element
    contains "Web Site Usability".
Rather, the expression returns false, and the title element does not contain
"Web Site Usability" (at least, not in a way that's pertinent to the example
query).


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 22 December 2008 06:53:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:38 UTC