Skip to content

Commit 44432a9

Browse files
committed
faq: [Error Handling in Selectors, aka Breaking Pages by Making Them Work]
1 parent 82a3ba3 commit 44432a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

faq.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ Take this code:
232232
<code css>
233233
#sensible .selector,
234234
syntax = !error,
235-
::new-feature {
235+
:new-feature {
236236
background: red;
237237
}
238238
</code>
239239

240240
Because of how selectors are parsed, this is not applied at all.
241241
Wouldn't it be nicer if it could apply to elements that match ''#sensible .selector'',
242-
also apply in up to date browsers to elements that match :new-feature,
242+
also apply in up to date browsers to elements that match '':new-feature'',
243243
and just skip the syntax error?
244244

245245
=== Answer ===

0 commit comments

Comments
 (0)