Bug 12602

Summary: XPath functions string(), normalize-space() and string-length() don't work without arguments
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: XMLAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 12584    
Attachments:
Description Flags
proposed fix darin: review+

Description Alexey Proskuryakov 2007-02-04 11:42:54 PST
This is another case of Value(bool) ctor being called unexpectedly. I'm really wondering if we should just remove it.
Comment 1 Alexey Proskuryakov 2007-02-04 11:59:45 PST
Created attachment 12922 [details]
proposed fix
Comment 2 Darin Adler 2007-02-04 18:10:29 PST
Comment on attachment 12922 [details]
proposed fix

Maybe we should nip this problem in the bud by getting rid of the Value constructor that takes a bool. Instead that one could be private and we could have a named constructor for making Value from a bool, like Value::fromBool().

r=me
Comment 3 Alexey Proskuryakov 2007-02-04 22:16:15 PST
Committed revision 19399.