Bug 21307 - Search doesn't find all HTML classes/ids
Summary: Search doesn't find all HTML classes/ids
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 07:31 PDT by Bernd Lutz
Modified: 2010-04-07 08:30 PDT (History)
2 users (show)

See Also:


Attachments
Screenshot of the search for "search-form" (64.84 KB, image/png)
2008-10-02 07:34 PDT, Bernd Lutz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Lutz 2008-10-02 07:31:56 PDT
Place: Search field in "Elements"
A HTML class/id attribute value with a dash (maybe other none alphabetic chars, too) is not found.
Example: There is a element <form action="/" method="post" class="search-form"> ...
Searching for "search-form" will not return any results. Even a search for "search" will not find the desired element. A class value like "searchform" would be found.
Comment 1 Bernd Lutz 2008-10-02 07:34:12 PDT
Created attachment 24019 [details]
Screenshot of the search for "search-form"
Comment 2 Timothy Hatcher 2008-10-04 14:16:44 PDT
This was partially fixed in r37288 by using getElementsByClassName. But the partial match should still work. This might be an XPath bug.
Comment 3 Bernd Lutz 2008-10-05 23:58:44 PDT
Well, but you still cannot find all classes/ids in the Web Inspector.
Comment 4 Alexander Pavlov (apavlov) 2010-04-07 08:30:11 PDT
Fixed with recent pfeldman's major search cleanup.