[Webkit-unassigned] [Bug 11815] XPathEvaluator behavior does not match Firefox - substring() and empty element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 27 13:03:24 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=11815


ap at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever Confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
         AssignedTo|webkit-                     |ap at webkit.org
                   |unassigned at lists.webkit.org |
                 CC|                            |darin at apple.com




------- Comment #4 from ap at webkit.org  2007-01-27 13:03 PDT -------
This appears to be a general problem in our XPath code - all C++ string
literals are treated as boolean values.

Easy to fix by adding another constructor to XPath::Value, but I cannot
understand how this occurs; suspecting a gcc bug. Please tell me I'm wrong :-).
Test case:

-----------------------
#include <stdio.h>

class String {
public:
  String(const char*) {}
};

class Value {
public:
  Value(bool) { printf("bool\n"); }
  Value(const String&) { printf("String\n"); }
};

int main()
{
  Value val("");
}
-----------------------


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list