diff --git a/mozilla/layout/style/html.css b/mozilla/layout/style/html.css
index 3909e904bfd..c6d4221a361 100644
--- a/mozilla/layout/style/html.css
+++ b/mozilla/layout/style/html.css
@@ -395,10 +395,8 @@ hr[size="1"] {
img:-moz-broken::before, input:-moz-broken::before,
img:-moz-user-disabled::before, input:-moz-user-disabled::before,
img:-moz-loading::before, input:-moz-loading::before,
-/* Nonempty applets should just show their kids.
- XXXbz do we need a selector that will ignore elements? */
-applet:empty:-moz-broken::before,
-applet:empty:-moz-user-disabled::before {
+applet:-moz-empty-except-children-with-localname(param):-moz-broken::before,
+applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before {
content: -moz-alt-content !important;
}