Bug 15508 - misparsing of the selector: "html>body*#search .srchimgs" is parsed as "html > body #search .srchimgs"
Summary: misparsing of the selector: "html>body*#search .srchimgs" is parsed as "html ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 16751
  Show dependency treegraph
 
Reported: 2007-10-14 11:25 PDT by Anantha Keesara
Modified: 2008-02-04 14:17 PST (History)
1 user (show)

See Also:


Attachments
If the style defined for an element has a space between Universal selector(*) and id(#), then Safari doesn't render that element (445 bytes, text/html)
2007-10-14 11:26 PDT, Anantha Keesara
no flags Details
Clearer reduction (158 bytes, text/html)
2007-10-14 11:44 PDT, Mark Rowe (bdash)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 2007-10-14 11:25:21 PDT
Safari treats the following two lines differently.
html>body*#search 
html>body* #search

Please see the testcase.
Comment 1 Anantha Keesara 2007-10-14 11:26:13 PDT
Created attachment 16668 [details]
If the style defined for an element has a space between Universal selector(*) and id(#), then Safari doesn't render that element
Comment 2 Mark Rowe (bdash) 2007-10-14 11:39:04 PDT
The problem would appear to be that "html>body*#search .srchimgs" is parsed as "html > body #search .srchimgs".  The title is highly misleading: the element is not rendered because the stylesheet has display: none.  The problem is the misparsing of the selector, not that the element is not rendered.
Comment 3 Mark Rowe (bdash) 2007-10-14 11:44:20 PDT
Created attachment 16669 [details]
Clearer reduction
Comment 4 Eric Seidel (no email) 2008-01-11 15:56:39 PST
I think bug 16751 is a dupe of this one.
Comment 5 Dave Hyatt 2008-02-04 14:17:36 PST
Fixed in r29776-8.