Changeset 30647 in webkit
- Timestamp:
- Feb 28, 2008, 10:19:59 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r30646 r30647 1 2008-02-28 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=17590 6 ASSERTION FAILED: subject in jsRegExpExecute() 7 8 * page/mac/FrameMac.mm: 9 (WebCore::Frame::matchLabelsAgainstElement): Added an early return in 10 case the element name is empty. 11 1 12 2008-02-28 Justin Garcia <justin.garcia@apple.com> 2 13 -
trunk/WebCore/page/mac/FrameMac.mm
r30490 r30647 297 297 { 298 298 String name = element->getAttribute(nameAttr); 299 if (name.isEmpty()) 300 return nil; 301 299 302 // Make numbers and _'s in field names behave like word boundaries, e.g., "address2" 300 303 replace(name, RegularExpression("\\d"), " "); 301 304 name.replace('_', ' '); 302 305 303 306 RegularExpression* regExp = regExpForLabels(labels); 304 307 // Use the largest match we can find in the whole name string … … 316 319 bestLength = length; 317 320 } 318 start = pos +1;321 start = pos + 1; 319 322 } 320 323 } while (pos != -1);
Note:
See TracChangeset
for help on using the changeset viewer.