Closed Bug 183731 Opened 23 years ago Closed 23 years ago

CSS - attribute selector should support | (pipe)

Categories

(Camino Graveyard :: Page Layout, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hajimeg3, Assigned: bryner)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021203 Chimera/0.6+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021203 Chimera/0.6+ According to W3C, there're 4 syntax for attribute selector. http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors [att], [att=var], [att~=var] seems to be OK. Only [att|=var] syntax is not supported. Reproducible: Always Steps to Reproduce: 1. make html with [ <img src="http://www.mozilla.org/images/mozilla-banner.gif"> ] 2. make css with [ img[src|=http://]{display : none;} ] Actual Results: mozilla-banner.gif shows up. Expected Results: mozilla-banner.gif should be invisible.
Summary: CSS - attribute selector should be supported | (pipe) → CSS - attribute selector should support | (pipe)
Not a Chimera bug. I haven't tested this; if it truly doesn't work, then it's something that isn't implemented in Gecko 1.0.x.
|= is the dash separated word list prefix attribute selector. [src=http://] would only match elements with src attributes with the values "http://", or "http://-foo". INVALID unless I'm missing something.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.