-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DOM hidden property instead of attribute methods #12971
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/efbcd9629553dfd/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://3.101.106.178:8877/c43f29b86600d32/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/efbcd9629553dfd/output.txt Total script time: 23.10 mins
Image differences available at: http://54.67.70.0:8877/efbcd9629553dfd/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/c43f29b86600d32/output.txt Total script time: 29.10 mins
Image differences available at: http://3.101.106.178:8877/c43f29b86600d32/reftest-analyzer.html#web=eq.log |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/1d0891e6d91f741/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/1d0891e6d91f741/output.txt Total script time: 4.21 mins Published |
Thank you for improving this! |
.setAttribute("hidden", "true")
or.setAttribute("hidden", true)
are misleading, because.setAttribute("hidden", "false")
also hides the element. This is because the HTML UA sheet matches[hidden]
..setAttribute("hidden", "hidden");
or.hidden = true
would be correct ways to do it. The latter is more future-proof though.The reason I'm doing this is because this showed up in the XUL boolean attribute matches in mozilla-central (XUL considers
hidden=true
as correct unlike HTML, and I'm looking into fixing that).